I agree with 2xsleepy, in fact part of the concept of hypocrisy is a certain lack of self awareness and an uncritical self-righteousness. There may be an unconscious or subconscious knowlege of the hypocrite's own shortcomings, but this is suppressed, often by railing against those shortcomings in others. There is the element of pretence and deceit, it's true, but often it can be self-deceit as well. It's a case of "it takes one to know one" and that is the meaning behind the psychological term Projection. We project onto others our own worst faults, as a self defense mechanism to avoid admitting that we are as bad as we really are.

Hypocrite is a very ancient word, having practically the same force in ancient Greek as it does in English today. To break a compound word into its component parts is sometimes to commit an etymological fallacy, but in this case is probably helpful. 'Hypocrite' comes from the words "over" and "judge" (or condemn) and it means one who sets themselves up as a judge over others, and by implication, an illegitimate or unqualified judge, since they are guilty of the same offences they condemn. That is how Jesus used the word against the Pharisees in the gospels. The accusation was that they judged others as sinners for various infringements of the Law of Moses, when they were themselves guilty of the same or worse offenses.

I think the best word to describe the phenomenon described by the OP is Projection.