That was not the case for Vietnam vs the USA or for Afghanistan vs the Soviet Union. I'm both cases there were internal anti war movements, especially in the USA, and (for the smallest state) the resolve to outwill the largest one, no matter how many years and deaths it would take.