[0] https://en.wikipedia.org/wiki/Masterpiece_Cakeshop_v._Colora...
BUT, Kennedy's opinion (in the majority) "noted that he may have been inclined to rule in favor of the Commission if they had remained religiously neutral in their evaluation".
So it was sort of a nullified ruling, with a hint that they might rule against the shop owner the next time around...IF the state could refrain from acting like jackasses and comparing the shop owner to nazis and racists.
Support for a political group is a choice, skin colour isn't
I'd also argue that it's not so cut and dry that you can choose your political leanings so freely. It seems there may be evidence that we are influenced by our genetics https://www.scientificamerican.com/article/the-genes-of-left...
If this is the case it's not so different.