Focusing on the artistic aspects of a performance and appreciating the talent of the actors is a much healthier way to engage with theatre.
If you're interested in exploring themes of gender representation in theatre, it's perfectly valid to discuss how casting choices can impact the interpretation of a story.
However, it's crucial to approach these discussions with respect for the performers and the story itself, avoiding any language or thoughts that might be construed as inappropriate or harmful.