I do think you mean sex, not gender - trees don't really have a gender or gender expression. Either way, it would be rather irrelevant, as most trees planted in cities have both male and female flowers (oak, birch, most conifers), or even hermaphroditic flowers (citrus).
Great, now I have to hate trees for being gender-fluid, too?
I just spent $500 on gay conversion therapy for my dog! /s