If we assume that the biggest cause of heart disease is obesity and poor general health-keeping, the solution there is to completely change your lifestyle: new diet, new exercise regimen, etc. While I think people who are at risk should probably do that, that's a much heavier lift than getting a COVID vaccine.
But given that we mostly don't know how to avoid all forms of cancer (aside from things like "don't smoke and you probably won't get lung cancer"), I don't see what point you're trying to make there. I mean, ok, yes, we should all get vaccinated against COVID in order to make it vanishingly unlikely we'll have to take an ICU bed away from a cancer patient (who got cancer through no fault of their own) who might need it.