The black box can’t be disabled AFAIK.
The argument in favor of disabling tracking is that the equipment itself could potentially malfunction in a way that disabling it would be safer (if it were interfering with voice communications or transmitting an emergency code inappropriately).
I fly small planes and it is not unheard of for ATC to ask pilots to cycle the power on a transponder that isn’t responding as expected. I assume that airline grade equipment is more reliable, but the same principle applies
Part of Federal Express Flight 705's whole debacle was that the hijacker tried to pull the breaker on the CVR.
And the investigation into SilkAir 185 was hampered because the recorders had their power pulled as a apart of load shedding while trying to resolve issues onboard the aircraft.
The radio operator of the Titanic was trying very hard to let everybody know where they were.