Japan is not really collateral. North Korea hates Japan apart from the US. In fact it's really the US that's collateral.
Having one overfly Japan may just be the least politically bad option they have.
Other paths would be toward China, Russia, Taiwan, Phillipines, etc.