Let $X$, $Y$ be connected smooth projective $\mathbb{C}$-schemes. Let $f:Set(X)\rightarrow Set(Y)$ be a bijection of the underlying sets. Suppose that for any $x\in X$, there exists an isomorphism $O_{X, x}\approx O_{Y, f(x)}$. Does there exist an isomorphism $X\rightarrow Y$?
This is true in dimension 1 (the stalk is a field only at the generic point, so the schemes are birational thus isomorphic).