The Role of Rivalry. Public Goods Versus Common-Pool Resources