OneDrive won't change anything if you never save. From Word's point of view it's a regular path and just like writing to a disk.
You need to turn on AutoSave. https://support.microsoft.com/en-us/office/turn-on-autosave-...