For the rest of y'all, this issue isn't exclusive to Macbooks. I'm experiencing it on my Mac Studio as well. Dragging and dropping to the icon or filename doesn't matter; the issue exists regardless, including dragging into an open folder.
Often times, if you have other windows open, MacOS seems to switch between open windows and randomly select which one your files will land on. This is especially annoying if I'm moving a large number of RAW photos into a folder and suddenly MacOS drops them onto Safari, which is active in a different space and display from where my mouse cursor/pointer is.
The only fix I've discovered as reliable is ye olde Cmd+C and Cmd+V commands for copying and pasting. Until such a time as Apple works out this bug at least.
[Edited by Moderator]