After you file

Since it is now 2023 you cannot have the 2021 refund applied to the 2022 return ... the IRS will not see that election in time since the paper filed 2021 return will take months and months to process.