A recent post on Math SE reminds me of an old issue as titled, shown in the screen grab below in case it is edited or deleted. There are several other issues with these few lines, but I'd like to just focus on the vertical white space inside the brackets.
Clearly the problem is partly inherent to the math expressions themselves being unbalanced in the sense that it is a big exponent on top of a small base, and one can certainly do something like \exp\Bigl( # \Bigr). Nonetheless, one can imagine situations where such "proper" formulations are not feasible.

I vaguely recall years ago dealing with this problem and solving it. However right now it seems my memory is faulty. Somehow I can find only a trick bypassing the issue via bmatrix, this using a box and vcenter, a package deal humorously named nath that's incompatible with amsmath, and another forcible practice deemed ugly (by the answerer Phelype Oleinik) using fixit from here.
It appears this cannot really be solved by smash (except in certain cases of inline use) since it defeats the purpose of having automatic sizing delimiters.
This seems to me like a basic thing that can be dealt with easily and "properly" without tricks like the aforementioned use of a matrix or a full-blown fixit.
In light of David Charlisle's comment (about staying on math axis or not), I'm working on refining (and reframing if necessary) my question.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
E\left[e^{-\frac{2\gamma^2}{a^2X+b^2}}\right] \neq E\left[\smash[t]{ e^{-\frac{\gamma^2}{a^2X+b^2}} } \right]^2
\end{equation*}
\end{document}

mathtoolspackage (an extension ofamsmath) could work. Look to subsection 3.1. Not sure if something there could help – Luis Turcio Dec 12 '21 at 02:59vcenteras done in the answer I linked and "rejected" before naively. – Lee David Chung Lin Dec 12 '21 at 10:17