Actually, the one with the ball on the end is not the pin type.
The pin type actually has a pin that you put through the socket and anvil and hold on with a rubber band.
They are really nice if you are working on a tall building or over water, but the socket is not going to fall off.
But it takes longer to swap sockets.
My Milwaukee impact had the ball type. It was well greased, but it was a huge pain to get a socket off.
One day the ball fell out, and I never looked back. I drop a socket every so often, but its so much nicer to change them, I have never tried to fix it.
The style in your pictures is probably the best compromise.