Is a smooth function characterized by its value on any (non-empty) open interval?

Do there exist smooth $f,g : \mathbb{R} \to \mathbb{R}$ such that $f \neq g$, but $f(x) = g(x)\ \ \forall\ x \in (a, b)$ (assume $a < b$)?

Solutions Collecting From Web of "Is a smooth function characterized by its value on any (non-empty) open interval?"