A family of Microsoft word processing software products for creating web, email, and print documents.
Since you inadvertently replaced your document, by saving over it, the original content may be lost, I'm afraid.
You can go to your OneDrive storage online and see if you are able to retrieve the info using the Version History. Sign in to https://onedrive.live.com with your credentials.
Generally, what is synchronized and what is not synchronized will depend on the settings in the OneDrive app. For an overview, see https://support.microsoft.com/en-US/office/sync-your-computer-s-files-and-folders-with-onedrive-615391c4-2bd3-4aae-a42a-858262e42a49#id0ebbh=mac .