I tried it again and there's definitely no collision when playing in Firefox (version 103.0.2).
It works fine in Chrome and MS Edge though so maybe it's browser specific.