Typically the term nepotism also denotes close social connections. I meant it more broadly to mean getting a job based on who you know instead of your abilities.
Wikipedia defines nepotism as: "Nepotism is the act of granting an advantage, privilege, or position to close friends or relatives in an occupation or field"
I have never encountered it used to mean anything other than familial connection where someone who is objectively unqualified or inexperienced gets a job/role.
Hiring someone one has worked with in the past over randos where both meet the minimum qualifications for the job is not that.
If I get a friend of mine to work for the company he still has to put in CV, still has to prove he can do the job.
Only bonus he gets is that I know the person and can back him up on the fact he is good to work with and since I work there that candidate will fit in the team more likely than a random person.
Meritocracy is there and people like to blame their failures on “nepotism” or “meritocracy” or anything else that is beyond their control to feel better.
The hiring manager gets the weight of your opinion that this person is good.
Without that then the hiring manager is basically hiring the person that is best at pretending they would be good at the job. The best actor in the interview. That is hardly a meritocracy.