It isn’t a contradiction to racists though you see.
To Nazis a person from Jewish parents who wasn’t religious at all would still have been sent to auschwitz. Just as a person from a Muslim background who doesn’t practice religion still gets abuse for being Muslim and would still not get into the US if they were from a certain country.
Do you see the point?