The assertion doesn't check equality (as in x.equals(y)), but rather whether a subset of the fields are equal. PiperOrigin-RevId: 374183338