SF is really bad. Lots of aggressive panhandlers and downtown absolutely reeks. I loved living there and it's a cool place to visit, but it's a nightmare combination of tech bros and poverty.
IMO, LA > SF. I loved all the little beach towns surrounding LA. The overall vibe is really chill. If we could have afforded it, we'd still be living in El Segundo.