I would say that your ability to code has nothing to do with whether you pass an interview. For example, here's a rejection I received recently:
> the decision was made mainly around our estimate of your level of enthusiasm for the company and the role. We are committed to hiring people who are strongly aligned with our mission and excited about the organization and what we are doing. In our conversation, you didn't express much interest in us as a company. [...]
> As I mentioned above, it is very important to us that our employees are excited about the company. We value that just as much as we value a fit from a skills and experience perspective. Again, I am sorry things didn't work out, but I hope you find this feedback helpful.
I have never worked at a place where I gave a shit about the company. I come in, I do my job, try my best to ensure things get better, eventually I roll out.
Never mix business with pleasure.