The Price of Equality: Suboptimal Resource Allocations across Social Categories