Nobody is disputing the fact that the US spends more money on arms than anyone else and has the shiniest of toys as a result, but "winning" in war is about effecting the outcomes that you want, not about whether your weapon systems are superior.
The US military has clearly failed to deliver the outcome that Americans wanted in many recent conflicts (Vietnam, Taliban); counting those wars as "lost" makes a lot of sense.
You are making the folly of thinking of war like lawsuits, where one side wins and the other side loses, and the losing side goes home with nothing. This is not so.
If you're walking home from work and some person tries to mug you, even if they are unsuccessful, that will permanently change your behavior as if they had successfully robbed you anyway. Maybe you'll change your route. Maybe you won't walk and drive instead.
I'd argue that the most important thing when trying to win wars is to aim for realistic outcomes.
The first gulf war was arguably a win because of realistic goals (get Iraq out of Kuwait and stop them from invading it again), while most other interventions in the region were basically "designed to fail", and unsurprisingly never achieved anything of note (and the problem was not lack of military capability).
>If you're walking home from work and some person tries to mug you, even if they are unsuccessful, that will permanently change your behavior as if they had successfully robbed you anyway. Maybe you'll change your route. Maybe you won't walk and drive instead.
In global politics, this tends to make you want to increase your defenses so it doesn't happen again, and find local partners for that defense. This usually comes at the cost of US influence, not its increase.
Like Iran is looking at its current situation and going "The literal only deterrence we could have to prevent this is to develop a nuclear capability. The US cannot be trusted to deal with, and it is pointless to try."
A nuclear Iran can now only be avoided by scorched earth. Scorched earth will now just cause an already partly US hating population to hate them more and create matyrs. Theres no possible upside to this conflict.
Not to mention, 20 years of no Taliban. An entire generation of Afghans grew up without being under a Taliban government.
Is it strategic deterrence, or just being so unreliably and inconsistent that insider information becomes more valuable?
Is it strategic to demonstrate a lack of planning or that you are a poor ally incapable of garnering support (either domestically or abroad)?