1. The sale of planes like the F-35 is not just about the plane. It’s about the ability to be a nation with nuclear power by “renting” the US nuclear missile it can launch. People bought it mainly for that. The pilot and YouTuber ATE Chuet did a video talking about this if you want to dive into it.
2. The plane in itself is not as capable as say the Rafale. They tried to do way too many things with it. The vertical takeoff capability in particular made the plane worst in every other aspect and its own design is very questionable. A Dassault engineer talks about it in this video [1]