As Carl Von Clausewitz famously said in his treatise On War, "War is a continuation of politics by other means."
So let's analyze this.
Trump said he went to war with Iran for regime change and unconditional surrender by Iran. When that didn't happen, he shifted to opening up the Strait of Hormuz. But the strait was already opened before the US attacks.
The objective of war is to impose your will on the other side and have them accept your political terms. War isn't just body counts where you kill more soldiers, destroy more of their armed forces, or win more battles. If one side loses the political will to continue, thus losing the political war, even if they achieved great military victories and is far superior militarily, they can still lose the war. Vietnam is the classic case of this.
Already, the political will of the U.S. is already on shaky ground for this war, various polls conducted in the U.S. have many Americans not supporting the conflict. Usually the President's party loses badly in the mid-terms, going all the way back to Truman's administration. Many new congress members will be elected in the fall of 2026 and they are running on opposing this war, it is expected Trump will lose both chambers of congress.
No political will to support the war, which means the desired outcome cannot be imposed, thus the war will be lost politically by the U.S.
War is a poltiical contest of will under conditions of extreme violence. The variables are will, endurance, legitimacy, and coaltion support, not just miltiary strength.