TFA mentions that you can use sync after cp to do the same thing as fdatasync. You can't "unmount the file system" because you're writing directly to the block device, the thumb drive isn't mounted.
("Eject" is macOS's term for "unmount filesystem")
"eject" is a Linux command which attempts to safely disconnect removable media.
https://manpages.ubuntu.com/manpages/noble/en/man1/eject.1.h...
TFA doesn't mention filesystems at all, sort of jumps in where we find the block device. Things could become messy if the device were mounted while the copy is attempted.