I had an idea and was wondering if it works. I seem to have gotten away quite cheaply. The many multiplications on the right side made me consider the prime divisors:
$p\mid (ah,bk)\Rightarrow p\mid ah \land p\mid bk \Rightarrow \left(p\mid a\lor p\mid h\right)\land\left(p\mid b\lor p\mid k\right)\Rightarrow \left(p\mid a\land p\mid b\right)\lor\left(p\mid a\land p\mid k\right)\lor\left(p\mid h\land p\mid b\right)\lor\left(p\mid h\land p\mid k\right)$.
Which matches exactly the right side! I am almost tempted to replace the implications with equivalences, use the definition of the gcd and call it a day! What do you think?
Reference
Apostol, Introduction to Analytic Number Theory, exercise 1.24.