Over 35 years, I worked for various bosses at various newspapers. I had some very bad bosses who were men. And some very good bosses who were women.
I also had some very bad female bosses, and some very good male bosses.
Their abilities and talents had virtually nothing to do with gender.