Hey guys i have such a weird problem

Anytime i'm with a girl and some of my friends about whom i think they're more successful with women or they just have a better skill to talk with them, i start to feel that the girl cares more about that friend or that i'm just not as good and she's gonna like him more than me.
Then of course i start to act like that and the girl likes him more...
How can i overcome this feeling or the whole problem? not going out with those friends is not the solution and it's for cowards
