Coca-Cola is a highly vertically-integrated company with huge economies of scale, giving it a near monopolistic position. Even if you had the 'secret' recipe, there is little hope of being able to profitably compete on price. And if you could compete in some tiny segment of Coca-Cola's market, they could lower prices and run at a loss in that segment until you ran out of money. This is before you take into account brand value...
Ask Berkshire Hathaway to invest in a sugary drinks company based on its secret recipe and listen to a whole corporation laugh.