Compares two ComponentId structs for equality.
the first ComponentId
the second ComponentId
true if this and id2 are equal
id2