However there's also this:
Which says although initially JF-17 was winning initially in one-on-one, when it came to squadron-on-squadron and ground attack Rafale got the upper hand.
No details of the engagement parameters? Maybe (assuming story is even true) the Rafale pilot was a total rooky and the engagement was a WVR dogfight against a seasoned JF-17 pilot with the Rafale starting from a disadvantaged position. Who knows.
Rafale winning group engagement (again giving benefit of doubt to story) is telling. Group engagement should have been relatively evenly set up and if they won that, the Rafale is better. Therefore where is the "domination"? If JF-17 block 1/2 can get the upper hand over Rafale, it is almost definitely pilot ability. In no domain is JF-17 block 1/2 superior or even equal to Rafale in BVR or WVR. Especially BVR where JF-17 is better off not even engaging. Poorer range, poorer payload, shorter ranged missiles, lesser radar (even block 3's proposed lightweight AESA remains doubtful to hold any edge on older AESA RBE).
JF-17 was never designed or acquired to be some counter to Rafale in equal numbers. It is a cheap enough and decent enough set of eyes and missiles in the sky for PAF. A decently equipped airforce always needs a certain minimum number of fighters that can be airborne and carry out missions. This is Pakistan's where it can afford it in the hundreds and produce much of it by itself, with its own people. That's the role. Not taking on a modernised 4.5 gen mid weight fighter. People expecting JF-17 to do much against Rafale on an individual basis, are delusional. India doesn't have large numbers of Rafales. That's the current saving grace for PAF's concerns. PAF's counter move remains to be seen. If they are sure Rafales won't be used against Pakistan because they're much more likely positioned against China, while that's true, it's just poor planning.