Let $f$ and $g$ be (non-constant) functions from $\mathbb{R}^d$ to $\mathbb{R}$. For a point $x \in \mathbb{R}^d$, let us define the set $S_{f,x} = \{y \in \mathbb{R}^d : f(y) = f(x) \land y \neq x \}$, and the set $S_{g,x} = \{y \in \mathbb{R}^d : g(y) = g(x) \land y \neq x \}$.
Is it possible to define $f$ and $g$ such that $\forall x \in \mathbb{R}^d, S_{f,x} \cap S_{g,x} = \emptyset$ ? If not, then how can one define $f$ and $g$ so that (for any $x$) the number of points in $S_{f,x} \cap S_{g,x}$ is minimized ?