For in-ear, I've had good experiences with Decibullz ('Custom Moulded Percussive Shooting Filters' model):
https://www.decibullz.com/custom-molded-percussive-shooting-filters/
They're only $75, are battery-free, and have some kind of hard rubber-type material that you simply put in hot water, and then mould to the shape of your own ear. They supply different kinds of in-ear tips, such as foam or flanged, and in different sizes, so you can also choose what feels best and fits best.
I don't know if they still do it, but they also provided a second set of moulds in the box, so you always have a spare set.
Because you mould them to your own ear, they won't pop out like foamies can.
For electronic ear muffs, like many here, I started with the Howard Leights, and then went to the new-ish Peltor Sport Tactical 500s:
https://www.3m.com/3M/en_US/company...Protector-1-Pack/?N=5002385+3291204148&rt=rud
These are more comfortable, seem to have a faster 'response' time than the Leights, and are much better at picking up low-level sounds.
These two work well for doubling up, and give a lot of options: Decibullz for pistol, hunting, and more active range work; the Peltor 500s for bench and prone (they're more low-pro that some other electronic muffs, but don't have the lower cutaway that the Comtacs do); and doubled up for when needed.