By definition, the function $f$ from $X$ to $Y$ is a bijection if every element $y$ in $Y$ is a value of $f(x)$ for exactly one $x$ in $X$. Also by definition, if there is a bijective correspondence between the sets $S$ and $\mathbb{N_m}$ then S has cardinality $m$, which can be denoted by $|S|=m$.
I want to prove that if we have a set S such that $|S|=s$ and $|S|=t$, then $s=t$.
Given is that there are bijections $f:S\to\mathbb{N_s}$ and $g:S\to\mathbb{N_t}$. Now we can use the pigeonhole principle for the composite functions $f\circ g^{-1}$ and $f^{-1}\circ g$ to obtain $s\le t$ and $t\ge s$, respectively.
Now my question is: why can we not say directly, from the definition of a bijection, that the cardinality of $X$ and $Y$ are equal. So that we can prove it by saying that if $|S|=s$ and $|S|=t$ then $s=t$ because both $f$ and $g$ are bijections with the same domain.