Everyone's situation is different. Read Divorce the IRS by James Miller for some more insight into your own situation.
https://www.amazon.com/Divorce-IRS-Defuse-Biggest-Before-ebook/dp/B091BQTNQX
While I agree with you mostly, the tax advantages can be overrated for a traditional 401k. Read "Divorce the IRS" by James Miller. It blew my mind wide open. Unless the OP has a Roth 401k.. then.. save away.
https://www.amazon.com/Divorce-IRS-Defuse-Biggest-Before-ebook/dp/B091BQTNQX