### Description

Our blocks#equals implementation checks only the content and skips a trivial identity check.

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/DocBlock.java
@Override
        public Builder copyFrom(Block block, int beginInclusive, int endExclusive) {
            DocVector docVector = ((DocBlock) block).asVector();
            for (int i = beginInclusive; i < endExclusive; i++) {
                shards.appendInt(docVector.shards().getInt(i));
                segments.appendInt(docVector.segments().getInt(i));
                docs.appendInt(docVector.docs().getInt(i));
            }
            return this;
        }
        @Override
        public Block.Builder appendAllValuesToCurrentPosition(Block block) {
            throw new UnsupportedOperationException("DocBlock doesn't support appendBlockAndMerge");
        }
        @Override
        public Block.Builder mvOrdering(MvOrdering mvOrdering) {
            throw new UnsupportedOperationException("doc blocks only contain one value per position");
        }
        @Override
        public DocBlock build() {
            
            return new DocVector(shards.build(), segments.build(), docs.build(), null).asBlock();
        }
        @Override
        public void close() {
            Releasables.closeExpectNoException(shards, segments, docs);
        }
    }
}