I have no idea if it was just me and my devices,but my experiences have been that the only devices I've owned that had batteries fail whilst I used those devices for two years were devices with replaceable batteries. The devices that had batteries that could not be replaced (OG Moto X, Nexus 7, Samsung S10+, Samsung S22 Ultra) lasted during the time I owned them. The devices that had batteries fail within less than two years were the ones with replaceable batteries (Blackberry 9000 and LG V20). Based on my experience, I prefer a non- replaceable battery that lasts two years over a replaceable battery that needs to be replaced sooner.
However it needs to be said those were early smartphones and both the tech and batteries have come a long way since. LG's were notorious toaster ovens even with light use.
Not dismissing or invalidating your experience, it is after all your experience but wanted to add some possible, perhaps overlooked outside perspective.