They can be very similar. It's like if you tell a pakistani to go work in a corner shop, that would be racist, as you're insulting the actions of that person (and many others of that religion), which is perceived as racism. I'm not saying that insulting any actions of people is always racism, but in many cases, like the one examplified, it is. If you insult someone's religion, you are insulting the beliefs in which their religion controls = racism. IMO.