You cannot use a similar name to different folders as the file manager won’t allow it. You’ll see a prompt telling you a particular file uses the same name already. If you ignore the prompt, you’ll end up replacing the other file with the one you renamed instead.