That’s very self-aware. I think a lot of people have egotistical thoughts that they wish they didn’t have (I certainly do). In particular around unhelpful desires for food, booze, drugs, sex, dopamine (all the things society often refers to as ‘vices’) that I know can have negative impacts on me and others.
I have wrestled with it for years, and the way I have found peace with it is to acknowledge that I have an ego that will try and fuck me up from time to time, and it’s part of me, but there’s another side of me that is less annoying and wants to do positive things (for me and others). And that those egotistical thoughts don’t define me, they’re not my identity, they’re just thoughts and I can choose how I act in response to them.
Hope that doesn’t sound like I’m giving instructions, just sharing what has worked for me