assert,util: correct comparison when both contain same reference
I would expect that given
const xarray = ['x'];
Then new Set([xarray, ['y']])
and new Set([xarray, ['y']])
are equal as per assert.deepStrictEqual
but since Node 20, they are not.
This PR applies the fix proposed by @BridgeAR
Refs: https://github.com/nodejs/node/issues/53423 reported by @chharvey