My first boss was a woman and I loved her. She was supportive, assertive, knowledgeable, and she backed me and trained me 100%. She was let go when a 'hater' bought out the business and fired her on the spot (for being a woman and a woman who wasn't meek and intimidated by him). When he stood over me and tried to bully me into doing both my job and hers, I gave my notice.
Another boss of mine was a man and he turned out to be a pedophile and tax dodger, among other nasty habits, and when he and I came to the end of our work relationship, he gave me a sealed envelope in the guise of a goodbye gift. It contained a bullet. Message received.
Another male boss I had, had a nervous breakdown. People snigger and say I did it to him, but he was a weakling when I got him.
I had a female boss who was a complete and utter B!tch. She belittled people in public, took credit for her staff acomplishments, was rude and difficult and enjoyed pushing people around. She had several complaints and I have no idea, to this day, why she wasn't sued or fired for cause.
My next boss was a man and I loved working for him. He was intelligent, supportive, a really really nice person who never got mad at me (and I can be a real pain in the arse) and gave me the freedom to manage my own workload, just checking on me and getting updates occasionally, or giving me projects and letting me run with them. I have nothing bad to say about him and still know and talk to him now, years later when I no longer worked for him.
I currently have a female boss who is great and someone I personally like, although she could be a bit more assertive and supportive, however I am much older now so I don't need the hand-holding. I am assertive enough for our whole team.
Truth is, I've had so many varied experiences with both sexes that I could not point to one or the other and say which is better - it is the individual person. I do find, though, that many people who are in management these days, get their positions with no management skills and get little training on how to properly manage and lead a team.
I once had a manager ask me if I hated him (we were having difficulties working on a project together) and I said no, I don't hate you, you just suck at communicating and managing the team. Apparently I was supposed to be tactful? T-a-c-t-f-u-l .... writing that into my book of words I have to learn ....