Hereditary comparison