OnMouseDown() inconsistent behavior

I’ve the following:

  1. A plane as the ground

  2. A cube on top of the plane

  3. Attach RigidBody to the cube

  4. Attach the code snippet below

    void OnMouseDown()

    {

    Debug.Log("OnMouseDown");
    

    }

I was expecting that I’ll see the log every time I click the cube.

But, it behaves randomly. I click on the cube. One of five or six clicks, I got one log message.

What did I do wrong?
Thanks in advance for your help.

The Console window has a “Collapse” toggle in the upper left; if it is on then identical messages are only shown once in the log.