Inlining a node for a comment plugin or best to use marks?

As you can read in this thread, “every synced change ends up replacing the whole document”. That’s also the reason I didn’t use y-prosemirror, yet (though the author said he started to adapt the code to use Prosemirror transforms at the beginning of this year).