Research in the thing you want to do > Any Research at All > No research
Prestigious Journal > Any Journal > Poster Presentation > Abstract > Nothing
The purpose of research is to demonstrate that not only are you committed to the task, but that you have been part of a research project or design, that you will know something about research when you are asked to do it again. This is very important for fellowship. You have a limited amount of time in residency to get a research project moving and published. If you have done some of that in med school, that process is easier.
An anecdote. I did research in Hypertension. It was bench work on rats looking at Ace-inhibitors and ARBs. Three separate interviewers asked me if I still wanted to do Nephrology. I was like huh? Hypertension? Surgery on Rats? Anesethesia? The take away was that I wanted to be a Nephrologist. The point is what you do your research in matters.