Instead of a pool? Salt gets all over your hair in the ocean, if you happen to swallow water there it's absolutely disgusting and there can also be sharks depending on where you live.
In a pool, the water could be contaminated with bacteria, but otherwise I see no reason to swim in the ocean.
https://strawpoll.com/2qux1g4ds