Spatial mismatch: An equilibrium analysis