The F35 overran on time and budget, sure, but it’s still an insanely good aircraft. I think the public perception that it’s a “failure” is a mistake
You don't see the F-35 in deployment abroad too often because it's not really needed unless you intend to molest neighboring airspace. Unless you're Washington or Tel Aviv, it's hard justifying the cost.
Military hardware exists to achieve a certain mission. Having some insanely great engineering figures Mena's nothing if the hardware is too unreliable to get the job done.