Hello
At times I've had trouble getting a bad O2 sensor out. It's going to be thrown away anyway, so I cut the wire off and was able to use a regular deep socket or a box end wrench to get a better grip. My sensor socket couldn't handle the torque the required to get the senor out.
Food for thought.
Dan