How to reproduce:
1. Open a new Unity project
2. Create a new empty script
3. Select Main Camera, drag and drop the newly created script onto it
Expected result: Only 1 component of the script is created on Main Camera
Actual result: 2 components are created
Reproducible with: 2023.1.0b2, 2023.1.0b3, 2023.2.0a1
Not reproducible with: 2020.3.45f1, 2021.3.18f1, 2022.2.6f1, 2023.1.0b1
Reproduced on: Mac Intel, Mac M1, Windows 10, Windows 11