For two functions $f$ and $g$, if $\nabla f(x) = \nabla g(x)$, $f = g + c$ for some constant $c$. Does the same hold if the gradient is replaced by the (convex) subdifferential, ie $\partial f(x) = \partial g(x)$ for all $x$ ?
And, as a stronger result, can we characterize pairs $(f, g)$ for which $\partial f(x) \cap \partial g(x) \neq \emptyset$ for all $x$ ?