Im trying to prove that you can add an arbitrary expression to both sides of an equality and you retain equality.
In Real Analysis it is axiomatic that if you have an equality of real values, you can add the same real number to both sides, and you retain the equality. But generalizing that to all arbitrary expressions, even exiting the real numbers, is what Im trying to achieve.
First of all, let's observe that it is not relevant if the above property is true for every $x$ in the domain or for just one, because it can be studied "$x$ by $x$".
In a certain sense the property you asked about is always true, if it is well defined.
On one hand it is clearly necessary that in the codomain you have an additive structure (otherwise “+” does not make any sense), not necessarily commutative, because you put both $h(x)$ on the right side.
On the other hand, if you have an additive structure, then let $G$ be the codomain, and $+:G \times G: \to G$ the addition: then $R_{h(x)}:G \to G; R_{h(x)}(g):=h(x)+g$ is a well defined function.
Thus $f(x)+h(x)= R_{h(x)}(f(x))=R_{h(x)}(g(x))=g(x)+h(x).$ (This because $f(x)=g(x)$ and so the have the same image through $R_{h(x)}$)
Notice that it is not even requested to exist an additive inverse. It would be necessary if you asked the inverse property: "$f(x)+h(x)=g(x)+h(x) \implies f(x)=g(x)$?"