Racism is taught in our society, it is not automatic. It is learned behavior toward persons with dissimilar physical characteristics.
So is it always nationalist to resist US globalization? The US thinks it is, and wants you to agree; and, moreover, to consider US interests as being universal ones.