Nexium is known by its generic name of esomeprazole, and Prilosec is known by its generic name of omeprazole. The generic names sound similar for a reason—esomeprazole is a chemical isomer of omeprazole. Both drugs are made up of the same chemicals but are arranged in different ways.