Two versions of the tragedy of the commons