Historical and logistical context aside, 1765 vs modern weaponry and war waging abilities, are you joking? The ability for militias with small arms to fight our own military has been a joke for several decades.
The Taliban aren't joking.
You are grossly under-estimating what it takes to fight an insurgency. A military fighting in the same country on which it depends is vulnerable to attacks and sabotage on all its support infrastructure. You can't just carpet bomb areas of resistance because that creates more resistance elsewhere or destroy the country you're trying to control. It's a hard problem and on some level you have to get people on "your side" to win in any sort of long term sense.