There is a big difference in what would be an objectively determined need (a knee replacement) versus something that is very subjective (wanting to be another gender). There is no quantifiable measurement for determining gender. (Speaking specifically for minors.)
If someone wants a knee surgery because they want to continue their hobby of endurance running, but does not need the surgery for an otherwise normal life, does that surgery count as an objective or subjective need?