I have AirPods, PowerBeats Pro and Studio3's.
Sound wise, the Studio's drown out the most ambient noises and have the best seal, albeit with a heftier weight, and for me a lot more sweat while working out. Not really a fan of them for the gym. Sound is really good, though a bit heavy on the base.
I've used AirPods at the gym since they were first introduced. Never had a problem with them falling out or getting ruined by sweating... They don't drown out the ambient noises of the gym, but its also nice when someone talks to you and you can hear them without stopping the music. Nice lightweight and for me very comfortable. My 2nd favorites for the gym.
My PowerBeats Pro are my goto headphones for the gym and most things other than yard work (thats what I use my Studio's for now). THey fit great, are pretty light, and seal out most ambient noises. Sound is almost as good as the Studio's, but less base heavy.
As for all 3, the Studio's and PowerBeats Pro run neck and neck with battery. The AirPods of course will need to be charged more, but I could get a full week of gym with only charging the case on Sunday (3 hours 4 times a week, 1.5 hours 2 times a week). With my PowerBeats, I have managed the same workout times with charging every other week.