Is drowning a painful way to die?

As a child at the shore I once got a lungful of water when I got a faceful of breaking wave instead of air.

The water hurt in my lungs.

Now, its nowhere near as bad as being burned or eaten alive, but I certainly wouldn’t call it pleasant.