You need to account for savings. A dollar saved in a high COL area is as good as one saved in a low COL area. If compensation triples and cost of living triples, your savings also triples.
If you are saving 100k/year in a place that is very expensive, and are happy to live in a place with low COL, work for 10 years in the high earning/high cost of living area and retire in the low COL area.