Need to brush up on your history/learn a little about warfare.
No you need to understand that the Taliban are the indigenous people of Afghanistan. They don’t come from Libya or Somalia or Saudi Arabia. If you kill 1000 of them another 1000 just get recruited. So when the Afghan military kills Taliban they are killing Afghanis. Their heart just isn’t in it.
The President of Afghanistan controls Kabul and Jalalabad. The war lords control the hinterlands. Its a big patchwork. There are basically three job paths in the country at present. Grow opium, join the military or join the Taliban.
We are not going to wipe out the Taliban and we are not going to change Afghanistan.
We need to leave.