Costs and benefits of inequality