On a previous question on this website, a user derived the following PnL of a delta-hedged option: $$P\&L_{[0,T]} = \int_0^T \frac{1}{2} \underbrace{\Gamma(t,S_t,\sigma^2_{t,\text{impl.}})S_t^2}_{\text{Gamma dollar}}( \sigma^2_{t,\text{real.}} - \sigma^2_{t,\text{impl.}}) dt$$
Indeed, taking the derivative with respect to time, we obtain that the daily PnL of a position is therefore $$\frac{1}{2} \Gamma(t,S_t,\sigma^2_{t,\text{impl.}})S_t^2( \sigma^2_{t,\text{real.}} - \sigma^2_{t,\text{impl.}}),$$ and hence the daily profit and loss is weighted down by a factor of the gamma dollar.
Therefore, at expiration, the PnL of the position might be positive or negative, independent of the final realized volatility versus implied volatility, since given the value at time $t=T$, it may be the case that we can be dragged down by all preceeding values from time $t=0$ to $t=T-\epsilon$ dependent on the gamma dollar.
This, however, leaves me somewhat disgruntled, because I feel like I am missing something important. When learning about options, we are told that the act of "delta-hedging" removes "path-dependency", i.e. makes it a pure volatility play. This, however, is clearly false, because we have the dollar gamma term there! Why are we taught this? It is not even close to negligible.
Secondly, because my intuition is so bad in this circumstance, I can't exactly think of a time where this happens. Let us say that I sell an options contract at an implied volatility of 45%, and subsequently the stock realizes a volatility of 42%, and also, assume I'm continuously delta-hedging. By the above, it is impossible to tell whether I am profitable or not, based on this information alone. Under what circumstances am I profitable? Must the stock be realizing a 42% volatility continuously throughout it, i.e. there cannot be a type of discontinuous jump -- is that what this is saying, in mathematical terms? (i.e. low vol -> really high vol suddenly? avg. realized may be 42%, but I may be losing due to that spike?)