Lemma. \gcd is associative [01EF]
For all positive integers l, m, and n, we have \gcd {\mathopen {}\left (l,\gcd {\mathopen {}\left (m,n\right )\mathclose {}}\right )\mathclose {}}=\gcd {\mathopen {}\left (\gcd {\mathopen {}\left (l,m\right )\mathclose {}},n\right )\mathclose {}}
After attempting to prove this yourself, you may click this text to see my proof.
Both proofs are correct! In some cases one style might be easier than the other. Universal properties are very powerful and one should not be afraid to use them directly.