I've noticed a significant decrease in battery capacity while installing Android 12 on a Pixel 5. Since the Pixel 5 is less than a year old, the "ancient" hardware may not be to blame. My RealMe GT's battery capacity also took a slight hit. It was not much, yet it was obvious.