Selective NSAIDs aim to inhibit only COX-2, an enzyme involved in the inflammation process, trying to minimize adverse effects. Non-selective NSAIDs inhibit both COX-2 and COX-1, an enzyme that protects the stomach, which can lead to adverse effects such as stomach ulcers.