Having been playing piano for over 50 years now, probably closer to 55, I find it interesting that I haven't a clue exactly "how" I use the sustain pedal though I use a lot.
I do sometimes play without it for short bits, mostly when I'm going through something I want to play more precisely and don't want the sustain to muddy the sound. I have thought that if something happened that the sustain pedal quit working, there would be numbers in our repertoire that I think I could get through and have them sound decent. Hopefully, I'll never have one quit during a concert. (I usually do have an extra somewhere not that far away.)
To add to the complexity, I do sometimes play piano and strings together and the sustain works the same with both sounds. It can be interesting when you'd kinda like the strings to sustain and the piano not to, or vice versa but have one keyboard and one sustain pedal to make it all happen. That can be fun.