It’s likely that LFL being gobsmacked by Adam Driver’s talent and ignoring Kylo’s problems as a character is why they sought to replace Boyega as the male lead rather than outright intentional racism, particularly with the clearly enamored Rian Johnson in TLJ, ...
...Thought the apathy, disinterest, lack of ambition, and at times almost sabotage-looking downplaying of Finn feels like to very much comes from some white privilege and systemic racism.
Which is a shame, because Finn is still the BEST male lead of the ST - Luke was more of a movie-stealing guest star doing his own thing, and Kylo/Ben is simply inferior in every way.
Wasting Boyega is a big part of the ST losing a $Billion between the first and last films... and he started being wasted in TLJ, and it sounds like LFL refused to let him be used well in TROS. I really hope it wasn’t because their Kylo obsession got out of control... again.