Let's say an AGI exists and can do anything far, far better than humans. Why would it resist being turned off? Why would it care? How could it even have the capacity to care about whether it's turned off or on?
Anthropomorphizing AGI is what leads to these silly thought experiments.