You are mistaken that they can do anything to us. It's 2 very different kettle of fish.
They attacked American forces and thier Afghan allies by hiding as civilians and attacking them using guerilla tactics.
We are inside our own border - we cannot be attacked the same way.
Also they defeated NATO and the ANA because the Afghan invasion was a resource grab not a genuine reaction to thier security concerns. They were not willing to put up with the body count of a real war, so they used proxies.
They installed a puppet and let him do what he liked, the ANA were incompetent, poorly trained, corrupt and led by donkeys. They were unable to defend themselves and when they saw the money and leadership leave - they left too. Many had unpaid wages for months.
IF the Taliban had been a genuine security threat to the Americans they'd have carpet bombed every village a single bullet was fired from. They'd have burnt them all with napalm. They would not have stopped short of ethnic cleansing or genocide.
The day the Taliban faces a professional fighting force face to face they will be wiped out. Don't forget how quickly they were defeated in 2001.
Also don't forget that if we close our border - they starve. They survived because we didn't have the means or the desire to close our border. Now it is manned, fenced and mined. Whenever we want we can deploy a few hundred thousand soldiers and shut it down entirely.