Like... yes and no.
a) People don't accept that cocaine is a hard drug and do gigantic lines with some kind of death wish.
b) Definitely correct me if I'm wrong, but data reflects that cocaine increases heart rate *but decreases the heart's access to blood flow to the heart.* Contrarily, amphetamines like adderall/meth etc all increase heart rate, yet do not constrict any blood flow regarding the heart itself.
There's so many ghosts out there from MDMA abuse/methamphetamine addiction/crack use so its not fair to say that "one is deadlier than the other." However, the answer is arbitrary in the end. I could state plenty of reasons why I think methamphetamine is the worst addiction to have at the moment, but that wouldn't really change anything or clarify a real answer to the original question lol.
*I think its very important to state that my dad was once a cocaine addict/alcoholic for many years in his 20s/30s during the peak cocaine era of the 1980s. He actually has some permanent residual heart damage/problems in his 60s now because of those years in his youth. Cocaine is a real drug, and daily use for years does objectively cause some potentially life-lasting side effects regarding the heart.