The greatest common divisor of two numbers (not both equal to $0$) is defined in $\mathbb N^*$ as the greatest element of the set of common divisors of these two numbers, with respect to the partial order $\leq$.
However, in my book is shown the fact that this there is another equivalent way of defining the gcd(a,b), namely by choosing the greatest element of the set of common divisors, with respect to the partial order "divides": $\mid$.
If I am not mistaken, here $\mathbb N^*$ can be equipped either with the partial order $\leq$ or with the partial order $\mid$.
My question is: how is it that we switch from one partial order to another in the definition of the $gcd$?
I mean, more generally, when two partial orders are available, can we always use one instead of the other when defining objects such as greatest elements?
Thank you very much in advance
PS: I am not looking for a proof of the equivalent way of defining the $gcd$, I am wondering whether this can be generalized to any set that has two partial orders available.