The primary use of COX-2 inhibitors is to manage pain and inflammation in conditions such as arthritis, without the increased risk of gastric ulcers common with traditional NSAIDs. By selectively inhibiting COX-2, these drugs aim to maintain the protective effects of COX-1 on the gastric mucosa.