2D Bullets destroy blocked by DontDestroyOnLoad

I’m new to Unity and am following a tutorial about shooting bullets and making them disappear upon collision, however, when I run the game, there is a DontDestroyOnLoad debug updater gameObject and it seems to block the Destroy(gameObject) in bullet script, is there a way to bypass this DontDestroyOnLoad?
If I can’t bypass it, how should I make the bullets disappear?

Unity version: 2021.3.20f1

Bullet script:

public class Bullet : MonoBehaviour
{
    void onCollisionEnter2D(Collision2D collision)
    {
        Destroy(gameObject);    
     }
}

Don’t destroy on load is not related. It’s just a way of having objects that are kept if you change scenes, as normally objects are destroyed when changing scene. You just need to put a capital O in OnCollisionEnter2D.