Let's step back a bit: stealth is about reducing the apparent size for radars. Being stealthy doesn't mean you're undetectable, but you will see a (non-stealth) enemy jet before it sees you. Then you fire a missile… and are instantly detected!
Air combat superiority will do only if you're still beyond missile range at that point. Otherwise the other side also shoots back a long range missile at you, and it's likely to end in mutual destruction. And even if it's not, you revealed yourself, so better not be outnumbered. That reduces the usage in air combat.
For air to ground, which is what happened here, same idea, except there are a lot of things you want to drop on a target that requires a certain proximity. The benefit of the F35 is it can theoretically take out air defence systems before being detected (again: providing the enemy radar does not have one of these next-gen fancy radars that can detect it). That's what happened in Iran… except that the whole scenario assumes once again conventional air defence: SAM batteries are typically massive and well "visible". They were destroyed before any jet would get close. But Iranians have APPARENTLY (I don't think that was clarified) used a much smaller launcher that conventional SAM, maybe even on man's shoulder, that was not destroyed, and worse: since it was optical/IR based, it didn't emit any radar signal and the F35 didn't see it coming (it didn't launch flares nor done any evasive move).
So, once again, the F35 niche app was to take out SAMs and that was revealed insufficient.
Now, was it an excess of confidence and could the F35 have performed its mission without exposing itself so much? We don't know. But the point is this is a flagrant demonstration of the limit of the "stealth" claims that often sound like a magic invisibility coat. I maintain: stealth does not have that many use cases!
"Robots will replace all jobs and work for us!" -- Who realistically thought they would be in the "us" here?
Robots belong to companies owned by shareholders, but mostly oligarchs. In their view, when robots work for "them", human population has been culled with 99.9% of the population died by starvation and/or stopped reproducing, and the 0.1% billionaire families survivors enjoy a cosy life where robots do everything.
Until the system crashes and none of these idiots know how to fix anything.
That's one more human extinction scenario to the list…