Or that, yeah.

Given that you should already get an error if you have two questions with the same ID, and undefined behavior if you *leave* the form in that state is probably acceptable, you could probably just not do the rename if there is any sibling mug with the same ID, in the expectation that the user will continue entering a different ID immediately after.