In my views, refusing to help people because of their gender is maliciously. Making decision about the worthiness of helping a young individual should not be about their gender. Call it a principle.
From reading about the science of discrimination and In-group and out-group thinking, there exist some key finding of human behavior and rationalization. "Us" are individuals and "them" are a homogenic group, and if you treat people like individuals you are automatically treating them as a part of "us". When someone of "us" do something wrong, it is about individual faults and circumstances. When someone of "them" do something wrong, it is a inherent trait of the group and fundamental aspect their kind.
The attack vector can only exist when a set of people are treated as a homogenic group rather than individuals. Inclusivity initiatives should in theory never do this, but defining people as a homogenic group is sadly what most of them end up doing. Maybe it because it easy and quick, or because it makes for good signaling to the in-group. The result is usually the same with the out-group feeling abused and attacked, especially for individuals who been moved from being in-group to out-group and now instinctual feel more vulnerable to attacks.