So what do you do when it's even generation?
Same as what's being done now -- pursue the domains that bring with it the highest yields of increased A2A capability:
- signature reduction
- better sensors, better EW
- better networking
- better weapons
- better power generation
Think about it this way -- for 5th generation aircraft that are receiving upgrades like F-35 Block 4, the most important upgrades it is receiving are the aforementioned domains. They're not prioritizing improving the F-35's kinematic performance greatly, they're not giving it TVC or increasing its G rating further etc.
Even in the case of J-20A compared to J-20, it is receiving substantial improvements to those domains (and the "upgrade" of the WS-15 is not seeking to further improve its kinematic performance but rather to give it the intended kinematic performance it was intended for -- yet even the WS-15 itself is arguably among the lesser important upgrades that J-20A is receiving from a pure thrust pov; instead the avionics, signature reduction, networking, weapons, power generation are the more significant benefits)
Similarly, for 4.5th generation aircraft relative to 4th generation aircraft, the primary advancements are less about bleeding edge kinematic performance, but about the same domains I listed above.
If you are in the same "generation" then pursuing advantages in those domains relative to the enemy in the same "generation" will accrue you better outcomes than focusing on low yield "WVR" gains.
Furthermore, holding advantages in those domains means you can defeat the enemy well before WVR, and even if they do get into WVR you can position yourself in a way to end the WVR engagement on your terms.