There is a difference between being egotistical and being confident. Confidence gives us the strength and conviction to do things. Egotism gives us the belief that we have a right to do what we want and everyone else be dammed.
Unfortunately egotism can creep into confidence. The fact that we start getting what we want due to confidence can make us believe that we are entitled to get what we want. This is not true. Everything we want and need in this world should be the product of work.
There will be times when things are handed to us, birthday presents, lucky breaks, but these are the exception. They are the sparkling prize and they should never be expected. We should never resent not getting something for free.
The bottom line is that we need to be confident but we don’t need to be egotistical. When we work for someone, they are not lucky to have us we are lucky to have them. We need to do our best and not let ourselves believe we can do no wrong