Instead of `rescue`ing would something like this work?

```ruby
other.respond_to?(:to_bytes) &&
  self.to_bytes == other.to_bytes
```