My 1. Gen AirPods were absolutely a mess. After two years, the battery lasted maximum 5 minutes.
I currently use AirPods Pro 1. Gen, which I bought in September 2020 (but got replaced due sound problems) one year ago. Both work absolutely fine by now. I don’t know how long the battery still lasts (I’m not using them for several hours every day), but I don’t have a feeling the battery’s degraded a lot.