Use Tags for gameobjects which need to ignored then on the on ontrigeerenter method just check for the tag ignore it
void OnTriggerEnter(Collider other) {
if (other.gameObject.tag != "<-tag need to be igonred->") {
// Your work for here
}
}