Ignore collision of a gameobject that is the child of the same parent?

I am in my opinion still relatively new to coding (this is about year 3) and was wondering if this is possible in an easy way. Now the question might seem confusing so here is it in “code”:

OnTriggerEnter(Collision other) {
    if(other != this.getOtherChildren.GetComponent<Collision>())
        //code
}

The other way that I was thinking was an array with each child in that I loop through. The problem is there are quite a lot and constant collision detection.
And I want to do this as efficiently as possible so I can maybe use the child ignoring code in the future. So I wonder if there is a non heavy way to do this.

Thank you in advance!

@SamxUnity My solution for ignoring the collision of a certain object is this: Unity - Scripting API: Physics.IgnoreCollision

[@SamxUnity] You can set all the game objects layer to a layer you create and have them not interact with each other.
https://docs.unity3d.com/Manual/LayerBasedCollision.html