The thing about writing in the Young Adult field is that its relatively diverse - there are plenty of YA novels written by women, PsOC, LGBT people and so on. And comics, especially superhero comics are far more homogeneous on the creative side.
And this doesn’t mean that white middle-aged cisgender men can’t write women, or gay people, or ethnic minorities, or even write them well, but it does limit their pool of reference, especially when it comes to the elements of those characters furthest from their own experiences.
A more diverse pool of writers means more ‘authentic’ stories, but it also means that the writers who aren’t women, gay, trans, from different religions, countries or of different ethnicities have more exposure to that work to inform their own writing. G. Willow Wilson isn’t the only person qualified to write Ms. Marvel, but her run on the book, whenever it ends, will serve as a template for better representation of Muslims, women and people of colour in superhero books.
And the other thing is, those women, ethnic minorities and LGBT people? They’re not going to bang down the doors of comics looking for jobs when it looks and feels like a white boy’s club. Sometimes you need to have “diversity hires” (as awful as that term is) to prove that you’re opening and welcoming to those people. I can’t immediately find the link, I’ll post it as soon as I can, but studies show a correlation between companies and colleges displaying diverse groups in their advertising and larger interaction with diverse customers/student applications