Yes, the British couldn't control Afghanistan in the 1870's and the Russians lost Afghanistan in the 1980's (thanks to the Reagan administration arming the Mujahedeen), but it's clear since Presidents George W. Bush, Barack Obama, Donald Trump, and now Joe Biden that there hasn't been the will from sniveling generals (or muzzled generals) to WIN the war and to decimate the Taliban. They could have carpet bombed them 24 hours a day, seven days a week for the past 20 years, but they didn't and the Obama and now Biden administration in particular undermined the U.S. military's combat missions, thus emboldening the Taliban, Al-Qaeda, and now ISIS-K.
This is just another Vietnam for America and its allies (Britain, Canada, France, etc.) and Kabul is falling just like Saigon fell. It's horrifying and the ramifications will echo for years to come regarding increased jihadist terrorist attacks in America and the West.