Girls, How do you stay motivated to be in shape and look good when you when you know men only treat you better because they want to have sex with you?

I have recently encountered a rather silly problem where I've been getting discouraged about losing weight because of all the objectifying remarks I get from women.

I like looking good and I like being in shape, but damn... It's just so depressing to know how many women will only interact with me because they want to bang me. In a weird way, I kind of prefer not being noticed by women (although definitely not enough to not lose weight). I know that women have a similar problem with the way men treat them when they slim down and I was wondering if y'all had any advice on how to not get super depressed about this.
Girls, How do you stay motivated to be in shape and look good when you when you know men only treat you better because they want to have sex with you?
Post Opinion