The prisoner's dilemma leads to mutual defection as the dominant equilibrium strategy in the one-shot version. Cooperation emerges as the equilibrium on repetition. The Han Solo gunfight is literally the one-shot version. When countries go to war that calculation is more complicated.