When my first HP printer died after a few years, I had assumed it was bad luck since a relative with an identical model had no problems with his and he thought mine dying was somehow my fault. It continued to be used by him for something like 15 years. Seeing his printer continue to work, I brought another HP printer thinking it was just bad luck. Then that one died a few years later. My relative’s printer kept going, so I assumed it was bad luck and I brought a third HP printer that was an AIO model.
During this time, I noticed that the ink costs were ridiculous, so I brought a Samsung laser printer and stopped printing with the HP printer, only using it for scanning. 19 years later, it is still around. The ink cartridges no longer work, but it is used as an occasional scanner.
Since having to use xsane to make copies for my father was annoying, I brought an AIO canon color laser printer a year or two ago. Now I have three printers, and they all work, except for the HP, which is not given the new ink cartridges that it needs.
That said, I now realize that the secret to HP printer longevity is to not use it as a printer. That is how my relative’s printer lasted so long, as he likely printed infrequently. His was a print only model, so he did not even use it as a scanner like I do with mine.