Gents,
In reference to the Yak-130 vs JF-17...
The -130 is designated to be a 'light attack' aircraft. There is persistent confusion about this class.
After you drop a bomb, your role as a weapon is effectively ended. The consequence of the act depends completely on the bomb. On the other hand, an 'attack' aircraft is intended to deliver munitions in a more accurate and deliberate manner than a bomber. By the word 'deliberate', it means you are able to deliver one type of munition against one type of target at will. An A-10 is an 'attack' aircraft designated by the prefix 'A'. An A-10 can carry several types of munitions against a wide variety of targets in the tactical battlefield such as anti-tank missiles against tanks, the Sidewinder air-air missiles against airborne targets, bombs against less fortified ground targets, and the cannon for lesser fortified ground targets.
For this, you need a dedicated delivery platform, hence the creation of the 'attack' aircraft where the aircraft is designed with many sacrifices and compromises in other areas in order to better accommodate ground attack capabilities. One sacrifice is that of speed, or specifically straight line speed where that capability is often needed to escape threats. One compromise, in this age of avionics, is that the avionics, specifically the sensor suites, is geared towards ground attack modes by default and the pilot has to switch to other modes when needed. We can see this level of specialization other than the USAF A-10 -- the US Army 'attack helicopter' like the Cobra and the Apache.
When a platform's physical design is oriented towards a mission type, that platform will have increasing vulnerabilities in areas of combat that are outside its design parameters. Take the SR-71 and the F-16. Despite the large wing area and powerful engines, the SR-71 simply cannot maneuver like the F-16 even though the F-16 has less in both wing area and engine thrust.
So here is the crux of this 'A vs B' question...
The Yak-130 is an airborne target to the JF-17. But is the JF-17 a ground target to the Yak-130? That is the philosophical and technical differences between the two platforms, one an 'attack' and one a 'fighter'. For each platform, its design parameters is oriented towards a specific target type. The JF-17 is an airborne target to the Yak-130 but only in an emergency and when the Yak pilot has to switch combat mode, whereas the Yak-130 is an airborne target to the JF-17 all the time.
The philosophical differences in designs and usage are what is taught today at the USAF Weapons School, formerly Fighter Weapons School. Pilot training will be different to match the platform he is assigned.
So even if the Yak-130 have the same level of avionics sophistication as the JF-17, the air-air combat odds favors the JF-17 in both platform technical aspects and pilot training.