OnTriggerEnter - check if collider is child

I’m making a 3d version of the classic game Asteroids. The player can fire torpedos at asteroids/enemy ships. When the player clicks the mouse button a torpedo is fired out from the player’s ships location. The torpedo has a trigger collider on it which causes it to explode OnTriggerEnter. Torpedo is the child of the player ship. Currently, I have it working so that the torpedo checks if the collider that enters the trigger is the torpedo’s parent, if not explode.

void OnTriggerEnter(Collider other)
    {
        if (other != parentColl)
        {
            Instantiate(explosion, transform.position, transform.rotation);
            Destroy(this.gameObject);
        }
    }

what I need to be able to do is on the ship check if the collider entering the ships trigger is its child, to avoid damaging the player. That way, when the player’s ship collides with an asteroid/enemy ship/enemy torpedo, they take damage. Currently, firing a torpedo causes damage to player without exploding the torpedo.
How can I check if the collider passed into OnTriggerEnter is a child of the player ship?

instantiation of torpedo (in script attached to player ship):

if (Input.GetButtonUp("Fire1"))
            {
                Instantiate(torpedo, this.transform.position, this.transform.rotation, this.transform);
            }

Assuming the ships are the root transforms you can check it using something like if (other.transform.root != parentRoot). You do not really need to check the colliders, but instead, transforms.