I think they are two distinct things, and I agree with the OP:
At your home table, roleplaying is a great opportunity to try out different identities, as long as you are doing so respectfully.
For publishing and media aspects of D&D, diversity should be supported through hiring and inclusion of diverse voices and participation.
In other words, Oofta at his table should experiment and play diverse roles. But if Oofta was producing a D&D TV show, then he should collaborate with creators of diverse perspectives and experience. Right?