America could never win that war because it was unwilling to even name the enemy much less fight it: Islam.
Do you have a plan to "fight Islam" that could be approved and funded by Congress and carried out by US Armed Forces?
It's much worse than that. We poured money into Afghanistan and they used that to have babies. When we invaded there were 20 million Muslims in Afghanistan. As we leave there are 40 million of them.
We are ending the war with 20 million more enemies than we had at the beginning.