There's also a highly effective surgical alternative to everything mentioned in this thread: FUE hair follicle transplants.
You can move roughly half the hair from the side of your head to the top without causing an overly thin look on the sides.
It has been speculated that Elon Musk fixed his early balding with FUE. If you look at the side of his head today, you can see the thinning.