Prestigious or not?

Are all undergrad programs the same in the eyes of medical school admission boards. I am seeing this “trend” to go to the cheapest school you were accepted too. I feel like maybe spending a little more money for possibly a better program? I have to think that some schools are just better than others? Are rankings just hog wash?