A 66-year-old man is evaluated for a 2-month history of right knee pain. The pain is worse with walking and is accompanied by approximately 5 minutes of morning stiffness. Medical history is significant for chronic kidney disease, hypertension, and mild gastroesophageal reflux disease. Medications are lisinopril, hydrochlorothiazide, and ranitidine as needed for heartburn.

On physical examination, vital signs are normal. BMI is 29. Medial joint line tenderness and mild crepitus are noted in the right knee. There is no redness, warmth, or instability of the affected joint; minimal swelling is noted.

Laboratory studies reveal a serum creatinine level of 1.6 mg/dL (141.4 µmol/L).

Radiographs of the right knee show mild medial joint-space narrowing, subchondral sclerosis of the same region, and small osteophytes at the medial femoral and tibial joint margins.

In addition to an exercise program, which of the following is the most appropriate initial treatment?