Today we can see that the US governments 20 year venture to establish a democracy in Afghanistan cannot even survive a few days against a group of regressive insurgents.
In fact I find it odd how the right side of the political spectrum state that they have no confidence in governments because they are inept and inefficient (which has a lot of truth to it). Yet many conspiracies about super complicated government plots seem to come from the right.
Afghanistan policy is disgraceful but to be fair it is a problem that just can't be solved. Not going in would have left OBL and Al Quaeda there. Going in was never going to work long-term - it never has - the russians could not do it nor anyone else. Pakistan can't control the tribal territories inside their own border. That part of the world is ungovernable in any sane way and rich because of the drugs trade.
One positive - for all that money and blood we now have a population there of women who expect democratic standards of liberty and education. What will happen to them now is appalling - equivalent for many to sexual slavery trafficking - but done to a whole country at once. However they may be able to change Taliban society from within for the better. There is some hope.
When criticising govt policy you need a policy that would be better. I would not have gone in - would have put pressure on the Taliban in other ways and been patient. But it is a difficult call. And the appalling treatment of women by Taliban was a big thing.
Maybe when leaving I would have got China involved but (a) China would not want this much and (b) US China relations were rubbish and (c) that would be politically impossible.
So democratic governments are inept and inefficient, but autocrats are all of that and bad and you can't change them. Look at most recent US example, that was very nearly autocracy.
This particular US decision was a case of Biden and Trump having identical policies - though you can argue Biden would have handled the initial timing and diplomacy a bit better, I don't think that would have helped. Biden pulling out now as he has done is pretty close to what Trump would do and can be criticised in the same way. Though you can see why the US needs to do it.