Agree with above- med schools won’t care where you went, certainly not between the two schools you are considering.
I know it was not your main concern OP but you said Duke is your dream med school. As a private med school that will be very expensive, well over $300K for four years, probably a bit more by the time you get there. If cost is no object then it won’t be a problem but if cost matters do yourself a favor and don’t get hung up on which med school you go to. As you may already know admission to med school is extremely competitive and you will be fortunate to get accepted to any med school.
Consider public med schools or any med school where you can go cheaply with less debt. If you are fortunate enough to gain admission to any med school then you have nothing to worry about- all US med schools are good and will teach you what you need to know to be a competent physician entering residency. The curriculum is the same. The important thing- do well in med school with good grades and letters of rec so you can choose the residency field of medicine/specialty you are interested in. Some (neurosurgery,ophthalmology, otolaryngology, dermatology, orthopedic surgery) are very competitive. It is in your chosen residency that you will really learn how to care for patients. And the quality of residencies varies considerably. Some will prepare you for your medical career much better than others.