However I think the OP drastically underestimates the proportion of wholly unqualified on paper people who apply for most jobs. I'd put it at 50% for most and up to 90% for some. So you can see why people go down the nepotism + chums route.
As someone who has a deeply weird CV and life experiences / social circle that is pretty much orthogonal to most techies it can be difficult, as the nepotism / chums route is not available. But just writing a cover letter to the JD and company gets me a fair way usually.