I find over the ear better because they're just more comfortable, from my experience at least. I do wear in-ear ones, but only when I swim, got my hands on some waterproof headphones that are quite ok, some Platronics that I found reviewed online. If you are keen on in-ear, do some research first, or else you'll end up with pool sound quality.
Don't expect the same quality as with over the ear though, and from my point of view at least, don't expect the same comfort in the long run. But it's best to have some in-ear headphones too cause you never know when you'll need them, especially if you go for waterproof ones to wear them when you work out or do other activities that involve sweat and water. Here are some models worth checking out, maybe it helps:
https://popular.reviews/waterproof-headphones/
Don't expect the same quality as with over the ear though, and from my point of view at least, don't expect the same comfort in the long run. But it's best to have some in-ear headphones too cause you never know when you'll need them, especially if you go for waterproof ones to wear them when you work out or do other activities that involve sweat and water. Here are some models worth checking out, maybe it helps:
https://popular.reviews/waterproof-headphones/