I do think we need to get out, but that's not relevant to the discussion. I think we should have pulled out in a manner that didn't facilitate the immediate and absolute collapse of the country and place thousands of lives in jeopardy. Thank goodness The Taliban were smart enough and disciplined enough to not press an attack on US troops and personnel. It could easily have been a slaughter.
Anyway we pulled out would have resulted in the Taliban quickly taking the country. The problem is the Biden Administration simply didn't plan for an immediate takeover of the country by the Taliban. Had they have assumed that was the most likely scenario, they would have pulled out the vast majority of Americans there as well as the Afghans that have worked for us prior to pulling out of Bagram. Instead, they believed the Afghan government would hold on for some time, and if they rapidly pulled out Americans, it would create a crisis of confidence in the Afghan government and defense forces. That has proved to be a colossal blunder that led to the fiasco the evacuation is today.
However, in my opinion, this is the least of our problems going forward. We will get all Americans out, the Taliban will not seriously get in the way of that because they want us out. Our Afghan allies unfortunately is a different story and we will almost certainly leave behind many Afghans that worked for us, which is to our shame as a country. However, a full withdrawal, which was the policy of both the Biden and Trump Administrations, may well prove to be a tragically bad decision for the United States because:
1. We gave the country back to the Taliban, a radical Islamist group with both AQ and ISIL as members.
2. The Taliban taking over the country again means they get all the arms we provided the Afghan Defense Forces with, and thus are now the most well armed Islamists in the history of civilization.
3. If the Taliban allows Afghanistan to become a safe haven for terrorists again, we do not have any bases nearby and Afghanistan is nowhere near the ocean, thus are ability to conduct anti-terror operations there is very limited.
4. There is very little that separates the Taliban in Afghanistan and the Taliban in Pakistan. If part of Pakistan were to fall under Taliban control, the Taliban would then have access to a nuclear arsenal.