Understanding that this is in jest, but similar sentiments cause real issues in STEM fields, as well as in society at large. Please consider exactly what you're saying before posting.
Are you telling him not to have those sentiments, or not to express them?
Neither; only trying to increase awareness and mindfulness that comments similar to his have very unflattering (and often unintended) connotations.