I'd argue we didn't need to go in, in force, and once the Taliban had been deposed, we could have left, or we could have left under Obama about any time, or we could have stayed with a low posture (which I would not have liked). Declare victory and leave.
Anyway, we stayed trying to fix a broken country, which sounds like one of our things.