If you are an average salaried software engineer, you can accumulate more wealth than a doctor if you invest at recommended rates. The break even point is somewhere around 60-65 years of age.
Irrelevant of the salary, most medium cities will only have a handful of tech roles available, at best. It's super hard to find and hold a job.
Veterinarians pay about the same for their schooling (but they don't really have residencies) and vets make ~70k-80k/yr.
If we think of a job's salary as a function of the talents used by the job and the cost of admission to the job, it's unclear why doctors and vets should earn substantially different amounts of money.
But I agree that it's easier to accumulate wealth as a non-doctor than a doctor. Just treat the first couple years of your career like medical school and it shouldn't be too hard to crack 6 figures - if you live modestly outside a megaopolis, you can save 40k/yr and get a six figure headstart over a doctor.