Typically, we use this function to determine whether or not a subset of data that has been collected with `gather` needs to be then persisted into a larger array with `scatter`. As such, it makes sense to assert on equality of the indices and smaller array size. Pull Request: https://projects.blender.org/blender/blender/pulls/140752