Only irreducible sets have a unique generic point. Since you mention 'the' generic point I will assume $X,Y$ are irreducible from now on. Let $\eta$ be the generic point of $Y$ and $\mu$ of $X$. Then $\eta$ is contained in each affine open of $Y$ and the same goes for $\mu$ in $X$.
So we can restrict our attention to some affines $U\subset X$ and $V \subset Y$.
The map becomes
$$f: U = \mbox{Spec } R \rightarrow \mbox{Spec } S = V,$$
$$\varphi: S \rightarrow R$$
and your question reduces to $\varphi^{-1}(\sqrt{(0)}) = \sqrt{(0)}$. Being irreducible gives that this nilradicals are prime. If you further assume that the schemes are reduced, then the nilradicals will be zero. Then we demand injectivity of $\varphi$. This must hold for every open affine $V$ and $U$, which is equivalent to the sheaf component $f^{\#}$ being injective or $f$ being dominant, i.e. having dense image.