A method to compare the difference between two slices has been added to couchbase-cloud (source) in AV-59670.
This should be moved to `tools-common/functional/slices`