Reproduction steps:
1. Open the "IN-45621.zip" project
2. Open "Assets/Scene"
3. In the Hierarchy window, click on the "Input" GameObject
4. Open the "My Button" dropdown menu from the "Input (Script)" Component in the Hierarchy window
5. Click on the "Circle" option and observe the selected value
Expected result: "Circle" value is selected
Actual result: Different value than "Circle" is selected
Reproducible with: 1.5.1 (2021.3.26f1, 2022.3.0f1, 2023.1.0b19, 2023.2.0a17), 1.6.1 (2021.3.28f1, 2022.3.4f1, 2023.1.2f1, 2023.2.0a21)
Reproducible on: Windows 10
Note: Reproducible with other values, chooses different values in different versions