Freeing up space · Recycle Vault
What happens if I restore a file and one with the same name is already there?
Short answer: Nothing is overwritten: the restored copy is placed alongside the existing file so you keep both. Use Restore to… to put it in a different folder.
Nothing is overwritten. If something with the same name is already in that place, the restored copy lands alongside it, so you end up with both and can compare them.
If you'd rather put it somewhere else entirely, use Restore to… and pick a folder. See How do I restore a removed file?