I would still recommend med school, even having to borrow almost 500K. While it's possible to pay off any amount, by going into a high-paying specialty (easier said than done), and by living very frugally and moonlighting as early as possible, there are a lot of good reasons to keep borrowing to a minimum.
First, you really do not want to wind up with a lot of debt, and with no medical degree, if you find that you have to drop out, for whatever reason. That is the worst case scenario. Second, the debt is not low interest, the interest will compound, and you will wind up paying off much, much more than you borrowed. Third, life comes at you - marriage, children, etc, with all the higher expense that entails, and the debt can really be a millstone around your neck.
Still, I would never recommend not going to med school because of the debt. Done right, you can pay it off pretty quickly. "Done right" means live as frugally as you can during med school and residency. Avoid the attitude of "I deserve it "(because I'm going to be studying so hard, because some day I'll make a great living so why not treat myself now, because a higher income lifestyle is a human right). Certainly, apply to schools that will be cheaper for you, but of course, nowadays, it's so hard to get into any MD school, your only option might be the one where you'll come out >400K in debt. Hopefully, you'll get a reduced tuition scholarship, and if you do, you probably want to take that school's offer. But even if you have to borrow nearly 500K, it can be worth it, especially if you go into a higher-paying specialty. Even lower paying specialties can wind up bringing in high income, if you learn how to run your own practice, and keep your overhead low.
I've been flabbergasted by the questions I've seen posted in the past (when the only limit on federal borrowing was how much the school would approve as cost of attendance), where applicants would ask how generous a particular school's cost of attendance approval was, because the applicant wanted to live well in med school, with a high standard of living, entirely on federal loans!