For me, "race" could never play a role.
I do have a sexual preference towards some "races", which is purely circumstantial and I am sure it would drastically change if I moved to a country with different demographics, but if he is the one that clicks for me then he is the one.
Now in terms of religion, yeah that can be a little tougher to overcome.
Thankfully, all religions have (what some people negatively refer to as) "lukewarm" believers that are level-headed.