I don't think there is anything really wrong with the F-35 JSF.
It's not quite as good at some things as the F-22 but it will do just about any job that's needed and with its variants allowing either normal airbase operation or carrier take off/landings it can be used by the Airforce or the Navy. Then, the Marines have a semi VTOL version too.
We have over 180 F-22's actively deployed so it's not like they are not doing their share of the job. They are just not as adaptable for the Navy/Marines.
Did you know the F-35 is totally unstable in flight and the only reason it can fly normally is because of several computers that are actually controlling it? Talk about fly by wire.
If the main engine flames out causing a loss of electrical and computer power, the APU designed and built by my old employer must start after being cold soaked at temperatures of 45 degrees F below zero in less than a second at altitudes several miles high. Once started, it provides electrical power plus main engine restarting capabilities.
That's quite an accomplishment.