I did buy a (Brother DCP-J4120DW) colour inkjet printer all-in-one device. And (surprisingly to me) it actually doesn't suck. The Linux drivers work. Sure, the ink is pricey, but it has generally been trouble-free. I left it for a couple of years without printing anything and it clogged up, but when the pandemic hit and I started having to print at home again, it cleared up with a couple of head-cleaning operations. I'm not printing much - maybe a double-sided sheet a week.
So yeah, the advice to never buy an inkjet - it's true but not disastrously true all the time.
I second the trouble-free experience with the dcp-j4120. Printing from Android works fine as well.
It does seem there are Linux problems ahead though, as the drivers seem to support only some deprecated CUPS driver version...
So yeah, the advice to never buy an inkjet - it's true but not disastrously true all the time.