Apple swore up and down that the bloated battery in my 2017 MBP was not a fire hazard. But I just paid $200 to replace it (plus tax!) even though their 'trade-in value' is about $250.
It feels lousy that they charge so much for the battery since this is a safety repair, and arguably caused by the fact that there were insufficient tolerances in the original build. This battery was put in circa 2019, when they replaced the keyboard/etc., so it's not even that old. I felt like I had a gun to my head since it could be a fire hazard.