A widely held view in quantitative analysis is that when a model does not fit the observed results well, the natural response is to replace it with one that does. I think this is materially incomplete. A poor fit tells us that something is missing, but it does not tell us what is missing. Before changing the model, we should understand why it fails and what assumptions or features the replacement needs to correct.
This is something I have encountered directly through computational physics. In my research, I compare different methods for modelling non-adiabatic quantum dynamics. It would be easy to simply look at the resulting graphs, identify which curve lies closest to the exact result, and declare that method the better model. However, that does not explain why one method succeeds where another fails. The more useful question is which approximation breaks down under those conditions and whether the alternative model actually contains the physics needed to address that weakness.
I think the same principle extends beyond physics. A more complicated model can often be made to fit historical observations better, but this does not automatically make it more reliable. If the reason behind the improvement is not understood, we risk fitting noise, introducing unnecessary complexity, or building a model that performs well only under the conditions in which it was developed. Understanding the source of failure instead gives us a basis for deciding what the next model should contain.
The strongest argument against this view is that explanation is not always necessary. In many prediction-focused problems, a model that repeatedly performs better on genuinely unseen data may be preferable even if its internal reasoning is difficult to interpret. Modern machine learning provides many examples where predictive performance improves substantially without a complete understanding of every learned feature. In such cases, insisting on a fundamental explanation before adopting the better model could slow useful progress.
I would therefore not argue that understanding should always take priority over prediction. My view would change if rigorous out-of-sample testing repeatedly showed that selecting models primarily on predictive performance remained reliable across changing conditions, while mechanism-based understanding added little practical value. Until then, I think model failure should be treated as something to investigate, not simply something to replace.