Hello @JK ,
Welcome to Q&A Forum!
According to my research, upload file with same name to replace the original file in SharePoint will indeed create a new Document ID. It is correct behaviour in my opinion.
Because Sharepoint cannot know whether the document is "same". In other words, SharePoint will consider these to be two different files, regardless of whether they have the same name or not
The only way is to update and edit the file directly in its Sharepoint-Location.
Thanks,
Echo Du
==================================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.