originSprite is a reference to a gameobject.
I also tried using GetPrefabObject but I get “NullReferenceException: Object reference not set to an instance of an object”
NuDraconis’s code should work with one minor fix. Destroying the parent with gObj still as its child will destroy gObj (the desired child prefab) as well, so you first have to remove gObj’s parent before destroying it.