I am trying to accomplish this brace-like result with tikz, in the most versatile way possible.

Naively using \overbracket{} and \underbracket{} from mathtools with manual alignment hacks such as
\[
\,\,\overbracket{\!\!\nabla A + \nabla A\!\!}\,\,
\]
has the disadvantage of not being able to be overlapped.
The best solution I have so far is uses tikz, MWE shown below.
The problem with this is that the tikzpictures (seem to) require the overlay option in order for inter-picture coordinates to work—however this also breaks the flow of the math. (Notice the alignment in the image below).
This example may be helpful: Similar thing for chemical equations. Thanks very much.
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{align*}
\mathcal{G} &= \nabla A + \nabla A
\\ \mathcal{G} &=
\begin{tikzpicture}[overlay, remember picture, baseline={(current bounding box.south)}]
\node[anchor=base, inner sep=0pt] (G1) at (0,0) {$\nabla$};
\end{tikzpicture}
A+{}\,
\begin{tikzpicture}[overlay, remember picture, baseline={(current bounding box.south)}]
\node[anchor=base, inner sep=0pt] (G2) at (0,0) {$\nabla$};
\draw[blue] (G2) -- +(0, .2) -- ($(G1) + (0, 0.2)$) -- (G1);
\end{tikzpicture}
A
\\ \mathcal{G} &= A + A
\end{align*}
\end{document}


