How is the calculation you're describing different than the calculation of optimal pricing for a monopoly?
It's also has an impact on what products get made, and investment in r&d. If you fall behind the competition in terms of quality, you loose marketshare.