Trump's surrender agreement required that ALL US military be gone by May 1st, and Biden extended that deadline twice, as conditions in Afghanistan continued to deteriorate due to the complete collapse of the American supported government of Afghanistan, and it's military.
Trump would have left everyone behind and let the Taliban murder them. Biden got 150,000 people safely out of Afghanistan, with minimal losses of American lives. No losing side in world history has so successfully assisted in getting their people out of the country.
Contrast this with the shameful final days of Viet Nam, under Richard Nixon, where Americans just cut and ran, leaving behind all of the South Vietnamese who worked for them, and the Vietnamese families of American servicemen.