Physics has its own collision detection system, which works differently.
Besides, the ball object has rectangular collision polygon, and in physics properties you set Collision mask to Circle. So "On collision event" may happen before Physics behavior registers it.
Try using this condition instead: ball.Physics.ContactCount>0