The point you’re avoiding is that a poorly armed and trained force defeated the US military. Now, you can try to blame that on the dementia addled “president “ - and be accurate in that assessment. But the bottom line is the taliban won. They got their country back and the US out. Nothing you say will change that fact.
So according to your definition of "defeated", if I punch someone until they are just lying there, and eventually I get bored and walk away, they have "defeated me"?
Nope. Wanna try again?
I would rate your reading comprehension...of your own statement, to be very weak if you can't see how this conclusion follows. You claim the Taliban "defeated" the U.S., and 'defeated' according to you means the U.S. decided to leave. It's simply a tautological statement, and if you can't see that then as Tom has pointed out it seems unlikely you are interested in seeing it.
As I see it
Initially the USA (+ allies, but its an American driven operation) successfully drove the Taliban from power
Then for many years they suppressed the Taliban. They found it impossible to eliminate them.
There were very inconsistent attempts at aid / nation building. This phase was generally a failure.
After seeing no end point to the operation and having suffered a political change that tends towards isolationism they go "Can't be bothered any more" and withdraw.
Everyone expects the abandoned Afghan government to fall in a year or so.
Everyone (on all sides) is surprised when it only takes a month or so.
So assuming that the objective was to leave Afghanistan a stable West leaning state then something failed (and if it wasn't what was the objective? revenge?). Now whether you think it was the Govt or the Military or both probably depends on your politics and how much you conflate the Govt with the Military and whether or not you think it should have been possible to eliminate the Taliban and/or build a functional national government.
Now at this point does defeat equate with "failure to achieve objectives"? Probably not (there is a gap between defeat and victory), but its close enough for a politician, and certainly close enough if you want an argument.