I think this is somehow one of the problems of gay men. The overcompensation of looking good (for all the rejections and problems we experienced in life growing up) in order to feel good and desired.
Definitely taking care of one's body for health and somehow self esteem reasons it's a very good thing, but making it a goal for happiness, self realization and erasing depression it seems a myth to me. Yes, work out, but also work on understanding that trying to look as much as possible like those hot boy/men we see in porn, on rent.men or in the streets of Chelsea, Miami Beach and West Hollywood it's not enough.
Learning how to accept that you are worthy of liking yourself and being liked by those who respect you for what you are is more important.