Refusing to bake a cake upholding the traditional definition of marriage while agreeing to bake a cake supporting gay marriage would be discrimination based on religious belief, unless it could be proved that the reason to create such a cake was not a religious one.
Read my entire post.