I want the word that means "a means of getting a job over reliable candidates", but I'm going to explain it here again in an example.
The example: If X and Y applied to a job, and X happened to have a relative that works in the company they applied to it, while Y knows no one in that company, but he has very high qualifications over X. However, X got the job nonetheless since he had a _____.
X could have got the job by other means like he knows the manager there, for example. Thus, it is not only relatives related.
I thought of "means" and "intermediate" but the results I got didn't confirm my thoughts.