One can get immunity via having the disease or being vaccinated. So it's a risk-benefit choice. The benefit is immunity.
With the vaccines the risks are significant allergic reactions for a very small percentage of people plus only having 3-9 months of safety data from test participants. Some test participants had symptoms serious enough that they had to take off a day or two from work.
For having the disease the risks are: death, for a very small percentage of people; serious illness, for a somewhat larger percentage of people; two or more weeks of significant disruptive illness for even more;
asymptomatic cases that are detected by testing, but were too weak to create immunity; after-effects including several weeks of temporary mental issues, organ damage, and months of disrupted senses of smell and taste.
ETA: Looks like I was incorrect about the disease risk I highlighted above,
https://medicalxpress.com/news/2020-12-evidence-immunity-mild-asymptomatic-covid-.html . Glad to learn that mild SARS-CoV-2 infections can create significant immunity.