It's true. He might not have done anything wrong. But it begs the question, Why would you ever put yourself in that position? Male coaches: mentoring female students is NOT YOUR JOB.
Go out of your way to make others feel welcome, valued, and seen. Stop focusing so much on who is leaving you out or what group you want to be part of. Some girl is thinking that same thing and wishing she could be included with you.