I don't think a better withdrawal from Afghanistan was on the table. My understanding is that despite Trump's insistence on leaving, the generals never made the preparations. That way they could keep telling Trump that leaving would be a disaster and never have to do it.
Biden shouldn't have moved the withdraw date back from the one Trump set. That probably did make it worse, but someone had to rip that band aid off.