@ucbalumnus is right.
That said, a very strong student from anywhere will be noticed by the better/best med schools and residency programs. They really just want the best, and they know that many of the best ones didn’t go to tippy top undergrads or med schools.