There is not evidence that heart inflammation after vaccination is less common or severe than after COVID-19 infection. For instance: https://www.medrxiv.org/content/10.1101/2021.12.23.21268276v... suggests rates several fold higher for vaccination than infection. Not to say that on balance vaccination is anything but preferable to naive infection, but it's not a side effect free panacea.
Thanks for that link. It contradicts previous studies that put the risk of myocarditis from unvaccinated COVID infection at between 6 and 15 times higher than that from vaccination (and 30x general baseline rate).
So I read through it and in fact, it doesn't say what you assert to say it does. This is comparing vaccinated Vs vaccinated+COVID. See the comments from vepe for full explanation.
Is it comparing vaccinated vs vaccinated + infection or simply vaccinated vs infection (regardless of vaccination)?
Do we have data on specifically unvaccinated infections?
Otherwise we can only speculate on whether the long side effects of infection are less severe with vaccines than without. Considering the general hospitalization rate between unvaccinated vs vaccinated, I know what my guess would be.