Reproduction steps:
1. Open the attached "repro_IN-51526.zip" project
2. Open the “GizmoBug“ Scene
3. Make sure that in the Scene view overlay, the “Toggle visibility of all Gizmos in the Scene view“ button is pressed
4. In the Hierarchy, select the "Cube 1" GameObject
5. Notice that the "Cube 1" GameObject is visible in the Scene view
6. In the Hierarchy, select the "Cube 2" GameObject
Expected result: The "Cube 2" GameObject is visible in the Scene view
Actual result: The "Cube 2" GameObject is not visible in the Scene view
Fixed in: 2023.1.10f1
Reproduced with: 2023.1.0b3, 2023.1.9f1
Not reproduced with: 2021.3.30f1, 2022.3.8f1, 2023.1.0b2, 2023.1.11f1, 2023.2.0b7, 2023.3.0a3
Reproduced on: Windows 11 (10.0.22621) (user's), Windows 10 (22H2)
Not reproduced on: No other environments tested