Suppose a) holds. I.e. there is some homeomorphism $h$ between $(M,d)$ (where $d$ is just the metric $M$ came with, being a metric space!) and $(M,\rho)$ where $\rho$ is the discrete metric on $M$ ($\rho(x,y) = 1$, except when $x=y$ when it must be $0$).
This means that all subsets of $(M,d)$ are open in the metric topology induced by $d$, because all subsets of $M$ are open in the dicrete metric, or more formally: suppose $A \subset M$, then $h[A]$ is open in $(M,\rho)$, so $A = h^{-1}[h[A]]$ (as $h$ is a bijection!) is open in $(M,d)$ as $h$ is continuous.
Now b) is clear by using the open set definition of continuity.
So $M$ does come with some metric, i.e. for $M$ we just think $(M,d)$ and all questions on its topology are questions on the topology induced by this $d$. Being homeomorphic to the dicrete metric on $M$ then gives us all the info we need on this _topology_ on $(M,d)$, which is the only thing needed for continuity.