It's trivially easy to understand that getting a vaccine that benefits you, as well as the people around you, is good for the people around you, much more so than it is good for someone you're protesting against.
And not getting the vaccine is potentially bad for you, and those around you, much more so than it is bad for anyone you're protesting against.
The vaccine helps your body fight the virus, and reduce the spread of the virus in your local community. That should be the key point in deciding if you get a vaccine.