If you're going into medicine for the money you are making a huge mistake. The front-side effort, commitment and cost is massive, and depending on your field it make impact important aspects of your life for as long as you practice. There are way easier ways to make money.
One example: do a comparatively easier 4-yr undergrad in business and start with a bank straight out of school (they scoop up lots of new grads willing to move around). In the same ~15 years you can move into a senior position in finance or M&A and make comparable money. It's not easy or guaranteed but IMO easier...
Medicine is the single most reliable path to the upper-middle class in America. Sure the other things you described are possible but honestly unlikely unless you have an Ivy League undergrad.
Additionally, the bay area in the US is essentially the only place in the world you can make that kind of money in tech.