`unless other.is_a?(Rugged::Commit)` is more convenient