Reproduction steps:
1. Open the attached project "Physics2DRaycasterSortingGroupBug"
2. Open the "NewBugs" scene
3. Enter Play mode
4. Click the bottom two buttons in the blue area
Expected result: "BlueButton was clicked!" is logged in the Console twice
Actual result: "GreenButton was clicked!" is logged in the Console when clicking the left button (or both in 2021.3.29f1)
Reproducible with: 2021.3.29f1, 2022.3.7f1, 2023.1.0a25, 2023.1.8f1, 2023.2.0b4
Not reproducible with: 2023.1.0a24
Reproducible on: macOS 13.4.1 (Intel), Windows 11 (user’s)
Not reproducible on: No other environment tested