Overspecialization can lead to collective tragedy even when every individual separately takes the most reasonable course of action.