Ref T10457. This is an upstream quality-of-life fix.
Currently, if the map rebuild test fails it generates about 9,000 lines of output in a huge diff of the two values. This is technically fine, but pretty hard to read.
Instead, compute a smaller difference showing only changed keys, since we never care about the values when this failure occurs (and barely care about the keys).