There's should not be any direct reference to the "internal" node object.
const createdNode = connection.create(...)
const modifiedNode = connection.modify(...);
Today createdNode and modifiedNode points to the same "internal" node object.
So if you try to diff before and after the modify, there is no diff because the createdNode object was "also" modified.