Join our Discord Channel
I don't believe it works with prefabs like that, a work around is to compare the gameobject name rather than the actual gameobject.