Suppose I have two random variables $X,Y$ with finite mean. Let's say that their characteristic functions agree in a small neighborhood of zero (this means that there is some $\epsilon>0$ such that $\Bbb E[e^{itX}] = \Bbb E[e^{itY}]$ for all $|t|<\epsilon$). Can I conclude that $X \stackrel{d}{=} Y$?
Remarks: If I remove the condition of finite mean then certainly the answer is no. This is a trivial consequence of Polya's criterion (see Theorem 3.3.22 in Durrett's book). On the other hand, if I instead impose the stronger moment condition that $\Bbb E[e^{\lambda|X|}]< \infty$ for some small $\lambda >0$, then $X$ and $Y$ certainly must have the same distribution (because then the characteristic functions extend to analytic functions on some domain of $\Bbb C$ which contains the entire real line).
Hence the real underlying question is: what is the minimal number of moments needed by $X,Y$ so that $X \stackrel{d}{=} Y$ under the given assumptions on characteristic functions? I suspect that the mgf condition is the minimal one (and tried to construct a counterexample using the lognormal distribution), but I could not prove it. If that's wrong then my next guess is that two moments or one moment would suffice, hence the original question.
Say $X,Y$ are absolutely continuous random variables so the question becomes
Take $\hat{\phi} \in C^\infty_c$ real even and supported on $|t|> r$, thus $\phi$ is Schwartz real and even, take $F\ge 0$ Schwartz such that $F- \phi\ge 0$ (*) and let $$f = \frac{F}{\|F\|_{L^1}} \ge 0, \quad g = \frac{F-\phi}{\|F\|_{L^1}} \ge 0, \quad \|f\|_{L^1}=1, \quad \|g\|_{L^1} = \hat{g}(0)=1, \qquad \hat{f}-\hat{g}=\frac{\hat{\phi}}{\|F\|_{L^1}}$$
(*) To construct $F$ we can use that for $\varphi \in C^\infty_c$ and $u $ continuous rapidly decreasing then $\varphi \ast u$ is Schwartz