Pre-Y2K, an M.D. pretty much guaranteed prosperity. You’d pretty much always be able to find a job and that job would pay well enough that you didn’t have to worry about much, financially speaking.
Industry disruption has been happening in medicine right along with every other industry out there, and it will continue to happen. The rise of telemedicine in the pandemic serves as one example of this.