Sources of cooperation in the one-shot prisoner's dilemma