But you're not really right here. In both cases, American forces dismantled the initial enemy: the Taliban regime fell in 2001, and Saddam Hussein’s government collapsed in 2003. Combat superiority wasn’t the issue.
We "lost" because all of those wars were occupations. Locals just didn't care enough to keep us there, or vehemently opposed American presence. It's really, really hard to occupy a country that doesn't want you there, even if your military capacity is vastly superior.
Defending a nation like Taiwan or Japan is a totally different story. If you are defending a country from an external threat, they want you to stay.
I was responding to the above commenter, who wrote:
> Living in fantasy land is how the richest nation the world has ever seen could lose a war to teenagers in Afghanistan.
What I'm pointing out is that the US has extreme combat superiority that no country has ever had to reckon with. And we have never waged "total war".[0]: https://ir.halliburton.com/news-releases/news-release-detail...