How to reproduce:
1. Open the attached project [Internal link].zip
2. Open the SampleScene and enter Play ModeSearch
3. Click "Add Children", "Clear", "GC.Collect" and then "Find Refs"
4. Observe the TextField contents
Expected result: TextField says "Found 0 unexpected elements."
Actual result: TextField says "Found 10 unexpected elements." or some other >0 number
Reproducible with: 6000.0.39f1
Not reproducible with: 6000.0.38f1
Reproduced on: macOS 15.5 (user reported)
Not reproduced on: No other environment tested
Note: If bug doesn't reproduce on first try, try clicking Add Children a few times and then Clear, Collect and Find Refs again. It usually reproduces on the first or second try.