This begs the following questions:
-what was the point of the JF17 if our adversary was already fielding/had placed orders for more advanced jets?
You had around 200+ 3rd Generation Mirages and F7s that needed replacement. Hence in the form of JFT you got very good BVR capable and now AESA radar equipped aircraft to replace all these old aircraft without breaking your bank
-what's the point of the J10C if the Rafale can outgun it?
Who says Rafale can outgun J10C?
J10C PL15 can have same range as Rafale Meteor if not more. In the end it would be the support systems and environment in which J10C would be operating that would decide the outcome of any aerial conflict with Rafale