One medication/ treatment cannot be singled out as the best for cases of hyperpigmentation and melasma, because each patient has a different case of pigmentation.
In many cases, applications of topical corticosteroids work. For others, it is a combination of creams.
In case procedures are required, they may take sessions. Sometimes doctors recommend a combination of both. In most cases, chemical peeling however has been the most effective one for hyperpigmentation and melasma.
But, the final word is only from the dermatologist for the treatment or medication.