Not to mention lying to themselves.
I don't see it as lying to themselves. I'm sure their family, friends and whatever team they have around them are aware of their sexual orientation. Fake relationships (gay and straight) are done for publicity purposes to maximize the brand and draw attention to the celebrities. I'm highly doubtful there are many celebrities in the closet due to their tortured psyches.