This is an incredibly important thing to understand. Buffet himself said it's better to be an average business in a great market that to be a great business in an average market.
Interesting. Not doubting this, but one of his sayings I saw many times is that "it is better to buy a great company at a good price than a good company at a great price", implying that great companies are worth significant premiums.