GPA is more important than prestige for med schools. Both is phenomenal but GPA matters a lot, the average med school GPA across the us is like a 3.9.
I know a lot of people who chose more chill undergrads for med school and are in top med programs now. I also know the opposite has happened for students at top undergrad institutions that didn't go to as top med schools.
It's an even more randomly chaotic process than applying to undergrad tbh.