If either limit the ability of people to immigrate purely based on race, then yes, that is racism. But they don't: https://www.justlanded.com/english/Japan/Japan-Guide/Visas-Permits/Japanese-citizenship Israel also allows for naturalization, so while it is easier to obtain citizenship if you are Jewish, they have avenues for others, including Arabic people. That said, even were it more difficult, neither country has lady liberty and a plaque stating "Give me your tired, your poor, your huddled masses yearning to breathe free, the wretched refuse of your teeming shore. Send these, the homeless, tempest-tossed to me, I lift my lamp beside the golden door!" If you want to block all immigration period...well you could argue that isn't racism. But if you want to limit immigration based on melanin, then that's racism.