Unfortunately, the best bosses I have had have been men. I had one or two women mentors in my previous field who were great, but one senior woman (not technically my boss, but she had power over me) early in my career was horrid to me and ultimately was key in my getting fired the only time in my career. (Before I could leave on my own which I was planning, ha ha). I think she was just miserable herself, which turned her into a miserable person and boss.
H right now has a pretty not-clued-in very senior female boss but it mostly causes him eye-rolling (and more work). She has too much on her plate. He thought she was pretty bad until he got a new direct boss who is years younger than him and his AWFUL. I won’t go into details but he is just tyrannical (and not too bright).
My H, on the other hand, is a great boss to his staff, including many women with families, and they are so appreciative that he shields them from awful senior boss. (I don’t think this just because he is my husband; his staff tells me this every time I encounter them