many medicines cure a disease they're targeted for, but also cause other effects on the body. sometimes these other effects are so serious they're as bad as or even worse than the disease they're supposed to cure. the same is true for vaccines. historically, live vaccines have a much better track record than non-live with all-cause mortality, so it's especially interesting to compare covid vaccines because both live and non-live been widely used.
it turns out that the mRNA vaccines, namely pfizer's and moderna's, cause mortality through other illness at about the same rate they prevent covid mortality, mostly through cardiovascular problems.
the covid vaccines cause death from non-covid disease at the same rate that they prevent death from covid.