It matters because vaccination has slowed both the severity and rate of spread of the disease, due to a reduced viral load shedded by the vaccinated individual.
It isn't a binary yes or no, but it has been a gradient. And every policy decision is made on a gradient of harm/benefit. So yes, it is entirely relevant about what the ethics of the hypothetical would be.
Not getting vaccinated is an action that directly harms other people, for what turns out to be no net gain. Requiring vaccination... Is an action that directly harms a few holdouts for some net gain for the rest. None of this is an absolute ethical question, and the degrees of harm and gain are this completely relevant to it.