In male pattern hair loss, a hormone called DHT gradually shrinks follicles on the top of the scalp. Dutasteride lowers DHT. It's related to finasteride: finasteride blocks one form of the enzyme that makes DHT, and dutasteride blocks both.
Oral minoxidil acts on the follicle instead. It was first developed for high blood pressure, and at a low dose it's prescribed off-label for hair loss. Minoxidil for hair loss covers the topical and oral forms.
Off-label means the use is outside a medicine's official approval, so it's a decision you make with a doctor who knows your health. Compounded medicines are not FDA-approved.
The aim is to slow thinning and protect the hair you have. Some men also see thicker hair in thinning areas, but that isn't certain, and no pill brings back hair where follicles are gone. Individual results vary.