Clearly Tom Riddle is the more confident boy with the higher self-esteem. Harry doubts himself and this is not only a stage he goes through at eleven, but at several points in his life.