I used to write predominantly male characters, because it "felt more right" and "just happened that way" and "I found men more interesting". Then I realized that was all internalized misogyny speaking and the deeply-seeded belief there was "women are not interesting enough to have their stories told" so I made myself branch out and write women.
In Engram the protagonist is a girly girl who is into tinkering with stuff and exploring space, with the supporting lead of her AI friend, who identifies as male. The supporting characters I flip a coin on, though I do have a desire to portray female mentorship so I try to push the story towards the protagonist looking up to other women. That said, I dislike the trope where if a story has a female protagonist, ALL of the supporting characters are women and there isn't a good reason for it. I get the desire to "balance the scale", so to speak, and try to add all the cool female characters that don't exist elsewhere because culturally-ingrained sexism, but IMO it's important to show supporting male characters in a female-lead story.
Likewise in my other stories, with male protagonists, I like to portray them having a student-mentor relationship with more experienced women, where the younger guys look up to the older women as a trusted authority figure. In my experience of being a mentor to a bunch of teenage guys, they do really want that kind of a role model in their lives.
In general I think my stories are roughly equally split in terms of genders, including characters who are fluid or who don't necessarily have a gender.