We've had many candidates that look strong on paper (3+ years of experience, senior titles, etc) come in and struggle. Struggles ranged from basic code literacy (think for loop to traverse a nested json object) to basic programming like writing a function. We've especially noticed this more with coders coming from purely a javascript and front-end background (React/Angular, etc). They understand control structures like if/else but struggle with loops, setting variables, and basic higher level concepts like breaking a problem into smaller functions.
My philosophy is for junior candidates, any level of competency is ok. Strong mentoring and experience on job usually can allow anyone to thrive and so you can prioritize soft skills and culture. But for more advanced roles, I don't know, it's hard to parse out the quality candidates without having some sort of technical interview. Definitely would love to hear how other's learning and experiences.