On the flip side in any domestic insurrection, the soldiers know the terrain, language, customs and culture of the people, the supply lines are nothing (rather than having to airlift materiel and people thousands of miles, you drive them on regular roads), the infrastructure supports espionage, most people support the regime and will collaborate to return to stability (since they voted for it), the regime never leaves (you can leave Afghanistan, you can't leave your own country or it ceases to be a country), and if you lose, you lose territory and/or politicians run the risk of violence. The stakes are why these comparisons are never relevant.