https://bugs.winehq.org/show_bug.cgi?id=45935
--- Comment #4 from Joshua joshudson@gmail.com --- Yes, this works reliably on Windows. The Windows version of the resulting system call is guaranteed to not replace in kernel and there's an opflag between MOVEFILE_REPLACE_EXISTING or not in the CIFS protocol.
Yes, you'd have to have a fallback, but it'll almost never get invoked. Modern Linux, BSD, etc. have had rename2 for 10 years. I don't have a Mac to check if the fallback would be invoked there but at this point it's look pretty silly if it's still not.