I'm going to go in depth (as always).
I think it really depends on the circumstances. I've had good and horrible bosses of both genders.
I had male bosses in the 90's that were misogynistic and oppressive. They looked down on females. I was relatively meek in my 30's, so they took every opportunity to put me down. I also had a female boss in the 90's that loved me and invited me to her house and to dinner with her husband, but she was bi-polar and would climb over anyone to get to the top. She gave me an award for being top of my department, but when I was promoted to another department she told everyone I had "short timer's attitude".
In the 2000's, I had a female boss who was all business and tough as nails. She would call me in my home office on Monday to touch base. She would never ask about my family or how my weekend was, but she offered great guidance and made decisions that moved the company forward.
She was truly the best boss I've ever had. She passed away unexpectedly and was replaced by another female boss that would call me and spend lots of time asking how I was doing, but she didn't have a clue as to my department or how to run the business.
She was the worst boss I've ever had.
Due to her inability to run the company, she was replaced by a gay male boss that had originally hired me at my company. He was brilliant at team-building and understood the business. He became the president of the company. I had two bosses under him. One was a straight male who was brilliant and appreciated me for my experience. He's reached out to me in retirement with employment opportunities. The other was a gay male who was serious about the business and was admired in the industry but was only out for himself. I've not heard from him since I retired.
So, it runs the spectrum.