Look at the cost though. Afghanistan is the poorest country in the world, people are actually starving there now, women aren't allowed to work, people are being murdered for their political beliefs. Just so they could give their invaders a bloody nose.
I think there is nuance there but it may derail the intent of my comment: It is not a foregone conclusion that an invasion with intent of regime change and control is actually a viable strategy. The point of the Afghanistan inclusion is that the relative miltary strengths were even more lopsided yet it was not enough for Russia nor the US to maintain control. Insurgencies are devastating and the more legitimate they are, the more likely they are to maintain support.