If you actually read into the case it's more complicated than just it's Airbus fault. It was caused by one of the confused pilots input. Why they were confused is a complicated story.
Gripen will not be able to fly higher than tree lines in zones with active anti-air. Russia can't really use any of it's air power in Ukraine war, for example.
F35 can actually do something in such scenarios, as detecting them in the first place is hard.