Regarding some of the doom and gloom some users feel, of course there is no way for Iran to outright defeat the US and Israel in a military confrontation. But that's not what they have to do in order for their adversaries to ultimately lose.
The Americans in particular are incredibly risk averse and squirm at the thought of casualties mounting and their economic interest being increasingly hurt. And while the delusional hardliners in Ivdea couldn't care less and will continue to pressure them, the US will ultimately look for an out when their position becomes untenable in the eyes of the voter base and shareholders of large corporate entities. The Israelis cannot sustain large casualties either, which is why they seek to utilize proxies in the form of the Arabs, the Kurds and the Americans. But if Iran manages to sufficiently threaten the Arabs and the Kurds, to inflict enough pain on the Americans to spook them, then Israel has no choice but to abandon their war of destruction against Iran and it's people.
Which means, Iran has to commit to doing what they've done so far. Which is to hold out and strike as many targets as possible. Military facilities, ships, infrastructure, residencies, the whole nine yards. Because only so will they make their adversaries feel pain. And with increased threat level, with missiles and drones flying, bases becoming unusable, staging areas getting pushed further out and sorties increasing, then we'll see accidents and losses also rise.
So yes, Iran cannot knock out and beat the US and Israel into submission, but it can give them a bloody nose and make especially the Americans consider if that's a fight they want to fight to the bitter end. And the Americans are under even more pressure with the Russians breathing down their neck in Ukraine and the PLA expanding their capabilities in the Western Pacific. Yes this is existential for Iran, but it can also be a nail in the coffin for the US+IL hegemony as they expend money, resources and ordnance indiscriminately.