The difference is that OTC Nexium is used primarily for heartburn. The prescription version is written by your provider so it can be used for additional indications, such as gastroesophageal reflux disease (GERD) or for the treatment of certain ulcers.