[NFC][sanitizer] Reuse forEach for operator==

GitOrigin-RevId: 4058637f7ac6c0c44c90604b041dafa6b24e641b
1 file changed