Things are more complex than you represent - well-known studies by Newman & Kenworthy (for example) show a very strong correlation between energy efficiency ('greenness') and city density (with denser cities being much more efficient for everything including heating and transport, and easier to walk/cycle).