It can be a hurtful reminder of the real world but representation is always important and a good author can portray the pain of experiencing homophobia in a very realistic way.
I especially love well written characters that deal with internalised homophobia. I'm not talking about ones who SAs a same-sex character and denies being gay, I'm talking ......