There is no doubt that Pakistan and China have joint production of JF17 aircraft, and it is a brilliant roadmap for all developing nations to follow. And my comment here is not to undermine PAC capabilities, PAC does not fabricate the airframe, wings sections, internal stamping's for the air-frame, Nose cones, Vertical stabs, internal spars, wire harnesses, landing gear, these are mostly structural comonents for the system. Most of the structural work is done by CAC, which in no way is the majority of the work. The entire integration of the avionics, installation of servos, hydraulics, installation of landing gear, integration of the engine, control system, radar, testing the of the sub assemblies and final assembly for PAF is done by PAC. Ordering aircraft from China only reflects ordering the structural systems from china, which they can probably do much cheaper as they have established line. PAC doesn't want to re-invent the wheel and leverages the economy of scale from CAC thus this it places order for whatever that number is. If anything the idea joint development is the right way to establish a aerospace ecosystem in any developing nation as seen in Pakistan and Brazil with their AMX venture.
As for capabilities of Rafale-H and Jf17blk 3, it is an unfair comparison.