I read a book a while ago that was well researched and gave the impression that Afganistan would always belong to the Taliban. It was called "No Good Men Among the Living".
https://www.goodreads.com/book/show/17454723-no-good-men-amo...
Gopal’s book is essential reading for anyone concerned about how America got Afghanistan so wrong. It is a devastating, well-honed prosecution detailing how our government bungled the initial salvo in the so-called war on terror, ignored attempts by top Taliban leaders to surrender, trusted the wrong people and backed a feckless and corrupt Afghan regime. The book has its flaws, minimizing the role of neighboring Pakistan in the Taliban’s resurgence and letting the Taliban off too easy. But it is ultimately the most compelling account I’ve read of how Afghans themselves see the war.
[1] https://www.nytimes.com/2014/04/27/books/review/no-good-men-...
It was written by a retired veteran: Mike Jason retired in 2019 as a U.S. Army colonel, after 24 years on active duty. He commanded combat units in Germany, Kosovo, Kuwait, Iraq, and Afghanistan.
It pulls no punches and, in my opinion, is worth reading.
[1] https://www.theatlantic.com/ideas/archive/2021/08/how-americ...