I never ran across any article that describes comparison circuits in the brain. Being an electrical engineer, I know they must exist, as everything that is in brain's memory is constantly compared with the input from the senses (reality). Otherwise, we wouldn't know if something was already experienced or not.

But, I never found anything related to that topic or to those brain circuits - that must exist, but nobody ever mentioning something like that.