On the other hand, sex has been found to have lots of benefits (I'm at work so I don't want to be looking up citations, but intuitively a few minutes of cardio can't be a bad thing).
These findings are backed by two cohort studies, one on female nurses in the UK and one on male health professionals in the US. There's really not much chance their STD outcomes correspond to the general population.
This data comes from cohort studies on nurses and other healthcare workers, so it wouldn't generalize well at all. We can assume eating veggies and smoking cigarettes affect them similarly to other people. They might be more likely to recognize problems and seek treatment, but they're not actually getting more or less nutrition out of kale.
When it comes to sex though, doctors and nurses are likely to have very different risk factors than the population average, in ways that are hard to rigorously study. Even beyond using protection or getting tested, they probably don't have the same protection error rates, partner pools, etc., as the general public.
When was the last time you saw healthy parents with an obese child or obese parents with a healthy child vs. how often you see healthy parents with healthy children and obese parents with obese children?
HIV does not significantly reduce life expectancy for patients who consistently take retroviral therapy.
https://www.webmd.com/hiv-aids/news/20170510/life-expectancy...
Maybe it's covered under "vigorous exercise?"
STDs cause a lot of grief and arguably as much or more damage than diet. AIDS speaks for itself; herpes is implicated in Alzheimer's, heart disease and other ailments and is just a general curse without the modern antivirals (although many persons are naturally immune); gonorrhea and syphilis continue to mutate to new drug-resistant forms.