imo it's the same thing, but feel free to disagree
yellow stars were used to mark out jews, so people and the state could persecute them, set them as the other. masks are used to prevent the spreading of disease, covid most relevantly. this is analogous to comparing apples and oranges, if you asked me