To a crude approximation, the NDL limit on your computer is loaded primarily by fast tissues at depth and by slow tissues in shallow water. This means that if you want to dive, then fly, it is better to do a short, deep dive prior to flying than a long, shallow dive (assuming that you stay in NDL in both cases) as the fast tissues will off-gas faster (by definition), leading you to eliminate N2 more rapidly.
I don't necessarily advocate deep, or shallow dives prior to flying. I am pointing out that many think that a shallow dive is safer than a deep dive (given the same degree of N2 loading) - this is not the case.