Well if you check out top med schools - where did their residents go undergrad - it’s all over. At Vanderbilt, where I was a patient, they range from Murray State to Kansas State to N Illinois. Looking further I see Oklahoma State, Quinnipiac, Texas A&M and more. I’ll have to look up - Hopkins or Duke were similar, schools like SE Louisiana and Luther. So where won’t matter. Affordability matters.
So to your question, merit in and of itself doesn’t matter. Cost does. UF and FSU may be cheaper full pay, then A&M, even with merit potentially, as an example.
Unless you are a stud and earn the Brown at A&M or Banneker Key at UMD, U of SC will be most generous and lowest cost for an OOS student assuming strong credentials. They tell you on their website their likely merit and you can reduce it from the OOS cost.
Why these three ? Depending on your stats, you may be able to go cheaper at like flagships if low cost is what you are after.
Good luck