When you are first deciding you want to choose a medical path that leads to MD it is important you understand what is required for a good application to stand out.
For example a good GPA is a great start for getting the attention of admission counselors and an impressive MCAT score is also highly recommended. Most medical schools look at GPA and MCAT scores first before anything else they see. Why is this? It's because when a student's GPA or MCAT score are not within an acceptable range, then it highly predicts how well the student will be able to handle the rigorous coursework of medical school. But a high GPA and good MCAT score are not the only things medical schools are looking for. Other factors come into play that can help boost your application and make you a competitive student. For example, extracurriculars, leadership positions, volunteer work, shadowing a doctor, clinical experience, research, publications. So if those numbers of your GPA and MCAT are not within range of the prospective schools you want to apply to, undergraduate research would be helpful and it can give you more of a better chance of being accepted, given the circumstances that you have met all other factors such as leadership positions, volunteer work etc.