Compare looks at it byte by byte. If two different masks use the same tables with the same values but they're at different places in the cal, compare would not indicate that the tables match.