JF-17 is a superior product and vastly more successful than any other military jet project of South Asia. Tejas is a failure.
Pakistan's program management and planning have been superior to India's inferior, and rather backward approach.
Pakistan exploited China's superior industrial knowledge/base to its own benefit, and produced a very potent platform for its air force with having complete access to all the technology, source codes, and weapon-integration of the fighter jet.
In modern world, you rely on specialization in global market.
East Asians learned it early on, and sky-rocketed.
Arab World is learning it now..
Indians also need to learn that making a jet own their own rather than collaboration was a stupid mistake.
Turkey started with collaboration, then transfer of technology for F-16s, then becoming a partner in F-35 program...only after all of decades of learning and hands-on experience, we are planning to go towards our indigenous fighter jet (which, again, will involve collaboration with top foreign companies/countries as well).