Top 5, but it depends on your goals. If you are interested in academic medicine and research then top 5 for sure. Are you interested in primary care? I would choose the In-state in that case. Since you want a competitive residency, the top 5 will help you achieve this but a top 50 medical school can also allow you to achieve this. You will just need to perform a little better to make up for the name-brand. If you are talking about something like plastic surgery, then top 5 definitely.