F22 is superior to F35 in dogfight and BVR combat. Whereas F35 sensors are optimized for ground attack role. F35 sensors is better than F22 in detecting S400 and S300 radar coverage and can easily evade it. F22 radar specifications, F22 AESA radar in narrow beam can track around 400 km, in...
Maybe F22 and F35 etc are all going to become obselete in 20 years with the advent of Russian MIG-41 and American F/A-XX aka X-planes (6th gen planes) which has limited ASAT and laser capabilities.
https://defence-news-world.blogspot.com/2020/08/last-update-on-mikoyan-experimental-mig.html