You have to believe that everyone is not perfect. You also have your own shining points, but you haven’t discovered them yet.
You must be good at discovering your own excellence, and don’t compare other people’s strengths with your shortcomings. Although he is excellent, he also has his own shortcomings. You need to know clearly which shining point in him attracts you. If you don't have this shining point or even lack it, then you should work hard from now on to get closer to him. When you can't hold on, tell yourself, the person you like is so good, how can you not work hard. I met a man of the opposite sex who spoke very good English and was very good-looking. I work hard every day to memorize words and practice pronunciation. Spend every day in the library doing questions. Then when we chatted, we also had some similar topics. He would tell me his method of learning English and recommend the learning materials he used to me. When I feel tired from studying and want to give up, I tell myself that he is still working hard and I have no reason to rest.