I've seen clear discrimination in favor of foreign students, but it was specifically because of those abusive conditions. I know of professors who exclusively tried to recruit specific foreign nationalities (their own, typically) because they could get away with treating them worse than American students. I wouldn't have been able to get into those labs, but I also wouldn't want to.