All the good engineers I know will prioritize the product though. "Accountants" will prioritize the cost. The "cheapest good product" and the "best cheap product" are almost never the same. The the latter is what you want to pay for but the former is what you want to have.
I think this is an oversimplification. Engineers prioritize the product, as they should, but what the best solution is depends on the constraints, and that includes things like cost of production, target price point, etc.
"Good, cheap, fast: pick two" is a law of the universe that most engineers deeply understand, and good devs will produce the best product they can according to which two are chosen.