You can loose a war while being technologically superior.
“Wargame after wargame exploring a Taiwan scenario has reached the same conclusion: Most aircraft losses happen not in the air but on the ground. Airbases across the Western Pacific sit within range of PLA missiles. Active air and missile defenses at forward bases cannot reliably defeat salvos at the scales China can generate, and passive defenses — hardened shelters, dispersed parking, rapid runway repair, and decoys — remain inadequate across most of the theater. High-value aircraft parked on exposed ramps at predictable locations are among the easiest targets an adversary can service.”
https://warontherocks.com/cogs-of-war/the-f-35-is-a-masterpiece-built-for-the-wrong-war/