NYC is the biggest and densest city in the US, so it has unique challenges. For example, what are the cops supposed to do to heroin addicts? Jail them repeatedly, send them elsewhere, or what, give the death penalty? Wherever you live isn't like NYC except more Republican, so you can't focus on small details like the right to buy cool-whip.
But SF truly is horribly mismanaged. Compare it to other dense cities. I'm glad I never have to work there again.