The arithmetic mean of the nine numbers in the set $\{9, 99, 999, 9999, \ldots, 999999999\}$ is a $9$-digit number $M$, all of whose digits are distinct. Find the digit that $M$ doesn't contain.

Let's think step by step and output the final answer within \boxed{}.
user