Could just comparing the primary key (`self.id == other.id`) be sufficient?