Reproduction steps:
1. Create a new project
2. Create an Empty GameObject
3. Create a few copies of the GameObject with different names
4. Restart the Editor
5. Select the created GameObjects
6. Using the Inspector window, rename the selected GameObjects to the name of one of the selected GameObjects
7. Observe the results
Expected results: The GameObjects successfully get renamed
Actual results: The names of the GameObjects don't change
Reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.8f1, 2023.3.0b5
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Notes:
- Does not reproduce when renaming without restarting
- Does not reproduce on newly created GameObjects if the Editor version is changed when restarting