A cake produced for a same sex wedding will not be appreciably different from one produced for a hetero wedding. The act of simply creating the cake doesn’t violate their “religious beliefs”, only the possible future context of the cake is the actual sticking point.