Compares the unique identifier with another unique identifier for equality.
Returns true if unique identifiers are equal or false if they are not equal.