gameObject are not referenced

I have this script in my prefab, after i instantiate it all works good, but can’t reference the gameObject itself outside OnCollisionEnter2D().

public class getCollisionBall : MonoBehaviour
{
    getData dataCol = null;
    void OnCollisionEnter2D(Collision2D colInfo)
    {
        if (colInfo.gameObject.name.Contains("Player"))
        {
            dataCol = colInfo.gameObject.GetComponent<getData>();
            dataCol.hittedBall = gameObject;
            Debug.Log(gameObject); //THIS WORKS! is the gameObject
            
            dataCol.vanish = true;
            Debug.Log(gameObject); //THIS WORKS! is true
        }
    }

    void Update()
    {
        if (dataCol != null
            && dataCol.hittedBall != null) {
            Debug.Log("GAMEOBJECT HERE"); //THIS NOT WORKS! is null, but i excpet the gameObject here
        }
        if (dataCol != null
            && dataCol.vanish) {
            Debug.Log("VANISH HERE"); //THIS WORKS! is true
        }
    }
}

public class getData : MonoBehaviour
{
    public GameObject hittedBall = null;
    public bool vanish = false;
}

From what I gather you need to change…

dataCol.hittedBall = gameObject;

To this…

 dataCol.hittedBall = colInfo.gameObject;

thanks for the help, but this is not what i want @cgklutts.
I want to pass the current gameObject owner to the dataCol structure.
dataCol.hittedBall = gameObject it’s fine, in fact dataCol.hittedBall contain correctly the object if i try to read from onCollisionEnter2D()
But if i try to read from Update() i get null and Debug.Log("GAMEOBJECT HERE") never happen.