That's video game thinking. The effectiveness of a military force is not based on its ability to fight enemy forces, but on its ability to achieve its goals and prevent the enemy from achieving theirs.
US military could strike enemy targets and defend itself in the Iran war, just like in other wars in the past decades. But this time, its ability to defend its bases and the countries hosting those bases was clearly insufficient. Due to this deficiency, Iran managed to achieve not only its primary goal (to survive) but also a secondary goal (to make other countries in the region question whether US military presence is an asset or a liability).
Cheap drones and missiles create an asymmetry between offense and defense. A small offensive force can strike anywhere it wants, but the other side needs sufficient defenses at every target worth striking. The US had sufficient offensive forces, but it lacked the several times larger defensive forces needed to protect the region from Iranian counterattacks. Its regional allies might have had those, if the US had told them in advance and given them time to mobilize.
US forces performed better than people have been saying they would for decades against drones and anti-ship missile, and their defense tech performed better than what we’ve seen in prior wars with similar matchups.
You and the other commenters keep focusing on overall strategy about eg the strait but the argument was about drones and missile attacks changing the game. Rather than changing the game, they were shown to be less effective than in past conflicts. The real video game thinking here is the bizarre idea that the US and was totally invincible and untouchable until this showed otherwise. They took shockingly few losses.