That amounts to the same thing. While Trump voters may not admit (even to themselves) that they were voting for Trump because he is a white male who champions white identity, sexism and racism were the key to making a grossly unfit candidate acceptable and a fundamentally qualified candidate unacceptable.
So “white identity and sexism gave Trump the electoral college” is still an accurate statement. Take those things away and he couldn’t possibly win.