@Override
  public boolean equals(final Object o) {
    if (!(o instanceof EthereumNodeRecord that)) {
      return false;
    }
    return Objects.equals(rlp, that.rlp);
  }
Override equals method to compare the RLP bytes
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/EthereumNodeRecord.java