People living in Mountain View or Sunnyvale have access to the same set of opportunities. Yet, median home prices in Palo Alto are 2.48M compared to 1.43M in Mountain View or 1.39M in Sunnyvale[1]. So the question still remains - why pay the price premium of >1M?
On most of the metrics except public schools, Palo Alto fares similar to nearby "cities". And while public schools in Palo Alto have higher ratings than Mountain View or Sunnyvale, you have the option of private schools (which are better than public schools in PA) for 20-25K/year, which still comes out to ~300K per child.
So I am still baffled by the price premiums one is willing to pay for a house in Palo Alto or Cupertino.
[1] http://www.zillow.com/palo-alto-ca/home-values/
http://www.zillow.com/sunnyvale-ca/home-values/
http://www.zillow.com/mountain-view-ca/home-values/
edit: I am using examples of MV/Sunnyvale only for those who like south bay due to weather/opportunities/current situation etc. Median home prices of >1M in those suburbs are still ridiculous, and someone considering moving to SFBA may benefit by exploring other parts of the world, if they are not tied to SFBA for whatever reason.