In SF, the city went in a rampage to prune and tear down trees (mostly ficus) because of the risk of the branches falling. There are lots of rules for where you can and can't plant trees based on road visibility, signage, electric cables etc. Result is that you have a lot of tree-less spaces in a city where basically anything grows.
In contrast, Mexico City has an almost anarchist version of urban greenery. Trees overflow streets and side walks. Yes, there are issues from dealing with the urban greenery, but the city is incredibly pleasant to walk in. Also, despite being an incredibly noisy city, trees and buildings mute out a lot of the noise.