Nothing stops masturbation. Best you get is creating a complex around it.
But when I was a kid and in the “I grew a fidget spinner!” phase of the late single digits, my mom told me that it i didn’t stop playing with it, it would get stuck in a random position and then I’d have to lay on my side to pee.
Yeah, Mama’s got a great sense of humor. She was once arguing with my brother and his friend when they were teens, looked him dead in the eye and said “I should’ve swallowed” then took a drink of her water, as if to demonstrate. We all collectively died, and are currently ghosts