Yeah, you have to factor in tax savings this year. If your income in your last year of working is > your expected income in retirement, you should contribute.
If your tax bracket in your last year of working is already low/will be higher in retirement, contribute to a Roth.
You seem to only be thinking of the tax free growth of your contributions. Perhaps not as much benefit there if you are nearly in drawdown stage, but you aren’t going to exhaust your IRA in retirement year 1 (right?).