We went with the generalist under the theory you’re advocating and it was a disaster. The people we hired learned Go, but it takes a while to grok the paradigms and really develop a mental model for what’s going on under the hood. Those hiring choices cost us a lot of grief and probably several months of development time as they made choices that were ostensibly reasonable in other languages/frameworks, but didn’t necessarily hold in Golang.
In the future if I require someone for something specific, say k8s, I’m hiring someone with direct lengthy experience in k8s and not a devops expert who has some experience with k8s.
If you're scaling up quickly or employing a bunch of people to immediately work on a new project, and expect them to stay an average of 2 years, you need preexisting experience.
If you're in a company where people stay on average 4-5 years and, and there's already a well established team with a good set of conventions and technical leadership, a generalist is probably a better call.
Lets say you're hiring for a Java position to make web apps. Is a better candidate someone with lots of desktop Java experience, or someone with lots of Django experience? The answer is of course, it depends. On the person, the job etc. I'd interview both and it's probable the second person has more relevant skills.
The problem with putting emphasis on years of experience is that the second person might not get through the HR filter.
Some people drive cars their whole lives and still get nervous in parking lots, freeways. Some kids are competent sliding on snow at 60 mph on mtn passes. Time doing is ridic.
This is true in the same way on engineering. Too many kids deploy feature and release it in production without testing or without accounting edge cases that at scale cause massive problem to the user base. While this could not be a problem in a startup it's a big issue in traditional corporation and where error are not an option (you wouldn't consider giving the software of a medical device to somehow who has demonstrates skills but don't know what issues may cause)
Like an African proverb says: If you want go fast, go alone. If you want go far go together