Everyone has to face rejection in interviews. But this is particularly frustrating when you know you would be great in the job. Most interviewers don’t take time to give an honest feedback to the candidate.
Until you don’t know what mistake you are making, you can’t fix it.
If your interview went reasonably well and you got rejected, check if they had to do anything with any of the following interview mistakes.