Depending on what residency you want to go into, it's probably not that difficult to get in provided you did alright in your medical school and on boards. If you want to do interventional cardiology, you need to get into an academic Internal Medicine program first, which is very easy. The more difficult part would be getting into a cardiology fellowship, and that depends highly on your cumulative profile plus your performance as an IM resident.