Outside of occupation, what would have been the alternative? The government of Afghanistan was a bunch of crooks.
There was no alternative.
I am just pointing out that Trump's plan and Biden's plan converged at exactly the same place - total control of Afghanistan by the Taliban.
Obviously, in regard to American hostages and USA military bases and equipment, Trump's plan was superior.