Heterogeneity in general equilibrium: the battle of coalitions