Reproduction steps:
1. Create a new project
2. Select one of the GameObjects in the Hierarchy
3. Move another GameObject in the Hierarchy
4. Observe the highlighted GameObject and the Inspector
Actual result: Inspector shows previously highlighted GameObject
Expected result: Inspector shows currently highlighted GameObject
Reproducible with: 6000.3.0a2, 6000.3.0b4, 6000.4.0a1
Not reproducible with: 2021.3.56f1, 2022.3.67f1, 6000.0.58f1, 6000.2.6f1, 6000.3.0a1
Reproduced on: Ubuntu 24.04
Not reproduced on: macOS Sequoia 15.4 (M4), Windows 11
Note: Issue is sometimes reproducible after adding another GameObject or making one of the GameObjects invisible and then repeating 2-4 steps