> Especially when literally the exact opposite is viewed as racism too: white people moving to where black people live is deemed gentrification and also bad.
No, gentrification is rich people moving to where poor people live and pricing existing residents out (often, leading to landlords evicting existing residence to remodel or sell units to a new class of residents).
Because of racial wealth distribution, it often has a racial/ethnic dimension, but that's not the essence of gentrification.