It’s whitewashing if they’re taking an opportunity for a high-profile role from a person of color (turning a role that either canonically—either in actual history or as indicated in fiction—was PoC into a white person). I’d argue you can’t whitewash cosplay since they’re not being used in actual roles.