I play whatever character pops into my head, although the aesthetics in games can keep me from rolling one gender or the other. A lot of games have male characters that just seems to look very generic to me, they remind me of the type of heroes and villains that I've read countless novels about that just leave me 'bleh' about the whole thing. Conversely, I don't like games like Tera where the female models are overly sexualized. I don't care if someone wants to play a character like that, but I like to have options, rather than being forced into something that doesn't mesh with the personality I have in mind.
If I'm doing something freeform, like a tabletop game, I like to mix it up. When I first started roleplaying I played almost exclusively male characters which burned me out after a number of years, so I tended to play more female heavy concepts instead. Since then its come back into parity.
In terms of playing your gender or the opposite... I've known plenty of male friends that have done female characters because they like the aesthetic more, an idea came to them for one, they think other players treat them better, or they just want to put them in the skimpiest outfit they can find. On the flipside I've had female friends that play mostly or exclusively males for similar reasons above, only with the extra benefit that other players don't assume they're a female, as they'd had bad experiences with guys in games due to that in the past.
When it comes down to it? I don't really care whose behind the screen. I don't really need to know as it doesn't impact the characters at all. If I like someone and enjoy playing with them I don't need to know something as arbitrary as their gender, their age, what they look like, or anything else. Sure, I've met up with people in old groups before when we happened to be in the same city and had a great time with the majority of them, but I keep OOC and IC separate as much as I can in all respects.