With regards to TFA, if Rey had been another boy there might have been more complaints, particularly in regards to recreating Luke Skywalker. It really would change the context of the film, particularly at the end.
Only a tiny percentage of the critics take umbrage over the use a female protagonist hero, and only a minority percentage of those are doing so out of misogynist viewpoints, whether deliberate or subconscious.