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.
> Career earnings, it's good but not that great compared to tech
We are in a strange time when software engineer salaries can even be comparable to those of doctors. Rest assured that sooner or later tech workers will be middle-class schlubs like pretty much every other type of engineer.