That is an incredibly sweet thing to say.
In the beginning of my career I often beat myself up (not literally!) over rejections and it contributed to my imposter syndrome. I realized later that job interviews look for very specific skills and are definitely not (and can't) be a comprehensive assessment of one's personal skills; or a predictor of future success.
Theres so many random variables in an interview that a candidate/interviewer can't control.