Feeling incompetent any time someone mentions a very competent person

I am studying and every time someone mentions how competent one of my fellow student is, I feel incompetent, and almost think about giving up as I am not as competent yet (which is true! She has previous experience so she is able to get more out of the program than I am, AND she is also a harder worker/makes it more a priority than me).

I am trying to get my thoughts to be of admiration or inspiration / or sometimes even to be just: I am where I am now – I am exactly where I should be – if I continue to work I can also become competent, everyone’s journey is different, mine is as valuable.

However, no matter how often I repeat those thoughts, I just feel bad for a moment after someone mentions it.

Maybe the thought work is just supposed to help AFTER feeling a feeling?