this is false, at least as a matter of what the law actually says. discrimination against men is definitely not legal. with most protected characteristics, discrimination is banned even against the dominant or historically favored group (e.g. it is also illegal to discriminate against white people, against Christians, etc.)
exceptions are age (it is legal to discriminate against younger people) and disability (it is legal to discriminate against people who don't have disabilities).