It's ok to discriminate if what's being asked of him is in direct contrast to his religious convictions.

What if someone came in and asked him to make a cake depicting a man having sex with a baby.  I guess most of you would say he must oblige.