Hi,
normally, when you try to create a second variable with the same name (next to next), Figma returns this issue:

But, if a variable doesn’t exist yet and will be created in the main and branch in parallel, and you then merge the branch, you have a duplicated variable.
Since, Figma doesn’t normally allow doubled names, this looks like a bug.

