Despite the tendency to think the most environmentally friendly thing to do is to go live in the middle of nowhere (it's not), dense cities are in general much "greener" than other types of development when looking at total output. But they do concentrate the pollution, so car emissions are worse locally. Take away the public transit, and they're a lot worse.