It does not say how you vote. Other than the fact that in a primary you pulled a republican or democratic ballot. But the people you actually vote for are a secret.
So if we think about the situation holistically, there's an important interaction between those two ideas, in that the boss is less likely to prod you to vote if they're in a different party.
Okay so that makes the second option generally less awkward than if the two events were uncorrelated.
...sorry, I still need more help to understand how you holistically used the word 'worst'.
Forgive me not knowing how it goes in the United States, but here in my electorate there is generally only one or at most a handful of candidates who you can vote for in each party. It would not be hard to narrow down who you vote for based on the party you selected.
That being said, even knowing which side of politics your peers vote for would be sufficient to harass them over it. I don't understand why anyone would think this is a good thing.
So knowing another person is from a different political party inevitably leads to harassment? I guess it really is 2018 in America. Back in my day voting wasn't such a tribal affair.
That's kind of the reason why most ballots are cast anonymously to begin with. I'm sure back in your day (which is a fairly arbitrary thing to say, really) this was no different.