Coca Cola vs Pepsi is a bad comparison. The Coca Cola recipe is a trade secret, not trademarked, patented, etc. The keep it a secret so they don't have to publicly make it known, thus by allowing people to copy, and it will never expire as copyright/patents do. The beauty of that is that as long as nobody knows the formula, they can forever be the only company to make it. If someone were to find the formula, and post it on the internet, there is nothing they could do to stop people from using it, accept press charges/sue against the person who stole it first.
Apple v Samsung is a bit different.
Apple v Samsung is a bit different.