Earlier quoted context omitted.
I'm not an expert, but from my experience this is not true. If you do well in Bay Area (lets say ~500k total comp) it will be hard to match that in another area even including cost of living.
How do you get to that level of compensation? Are you just referring to "luck" with stock or cash salary? If it's not stock what skills pay that much?
There seems to be ample [1] data [2] about [3] this.
1: https://www.glassdoor.com/Salaries/san-francisco-senior-soft...
2: http://www.payscale.com/research/US/Job=Senior_Software_Engi...
3: http://www1.salary.com/CA/San-Francisco/Software-Engineer-II...