Tubes do produce better sound than transistors when operated class A, because triodes are more linear. Transistor amplifiers require huge amounts of feedback to operate in a decently linear range, which introduces complexity, uneven frequency response, and amplifier instablility. In short, a simple triode amplifier will probably sound better than a simple transistor amplifier. But with a complex enough design the transistors drawbacks can be nullified. Tubes just don't have much of an area where the cost to performance ratio is very favorable.
For the lowest range, an IC package will beat the price of a tube, even though a tube may sound better. When the output range gets to be a few watts and high quality sound may be a consideration, the cheapest design is a class AB amplifier, which removes the better sounding class A from consideration, and most of the advantage of a triode. When the price gets to be very high, class A ampifiers still don't have near the power output that a class AB amplifier can easily attain.