It really depends on the person. There's no set rule for me. Some girls I feel comfortable around, others not so much. Same with guys. I dont feel more comfortable with one gender by default.
I dont know why, I guess a lot of factors influence it, like how long I've known them, what our shared interests/ experiences might be, or if I dont know them that well what my first impressions of them were.