So they bred tomatoes that can be very firm and very red with almost no relationship to actual ripeness, and taste terrible.
In that case, it's more of a trick than customers showing a preference for firmness or color over taste.
But you're right, I think, that customers will generally choose cost over taste, or over almost anything else, in the aggregate over the long-term anyway.
Apparently the yellow-ish color was originally a mark of high-quality milk from grass-fed Jersey and Guernsey cow. Now they use annatto and other spices/dyes to add color to the cheese.
Essentially, when the consumer doesn't have complete information they will have to make purchasing decisions based on proxy information. As you note, this can lead trickery from the person selling the product.
Is it that or just that firmness and redness are correct signs of "will last until I get it home from the store and use it for dinner in a few days"?
No consumer would actually say they want worse tasting tomatoes, but consumers as a whole clearly made that choice by buying only cheap and firm tomatoes. Same with farmers, they didn't want bad tasting tomatoes, they just wanted to make a profit and knew that the market responded positively to tomatoes that were red, firm, ship well, and stayed "good" long enough for the retailers.