There’s actually a term for this line of thinking, “Total Cost of Ownership”, or TCO. If you buy something cheap, and have to replace it 3x, you’d be better off buying something that costs 2x more up front, but lasts longer.
For me, I’m pretty simple. I never skimp on running shoes (Asics, they’ve served my running feet well for 30 years!) same with hiking boots/shoes (Merrill). Coffee makers may be up there, cheap ones break a lot.
Bottom line: in the “good-better-best” spectrum, we typically buy in the “better” range.