A family of Microsoft word processing software products for creating web, email, and print documents.
At File > Options > Save, select the option "Save to Computer by default."
You also have to specify a "Default local file location" which is outside of the local OneDrive folder, because everything which is stored inside the folder will be synchronized to the OneDrive cloud by default.
Note that if you want to prevent all synchronization of files from your computer, unlink OneDrive. See the "Unlink OneDrive from your computer" section in the article at https://support.microsoft.com/en-us/office/turn-off-disable-or-uninstall-onedrive-f32a17ce-3336-40fe-9c38-6efb09f944b0.