The question is if the Trillions spent on the F35 were worth it.
For the cost of the whole program the US could have gotten something like 80,000 F18's. A fighter that has shown to hold its own 1 on 1 vs the F35.
In a war quantity is a quality of its own. Which is something the US are learning in Ukraine