Raising a kid in SF is definitely tough, but places in the Sunset have yards, and there are some top-notch schools e.g. Lowell High School, UHS, Lick, etc.
A lot of tech people come from out of town and don’t take any time to adjust to the fact that SF has very distinct neighborhoods. Many will just draw high salaries and gravitate towards whatever is popular / flashy without considering the consequences.