I still have an HP4050DTN and an HP5000DTN. Both of them pre-date this century, and will likely work just fine into the next, providing I can still find cartridges for them and Ethernet still exists.
I doubt I will ever buy a modern HP product, seeing as they are so stridently enshittifying their printers.