Investors & landlords

Just to clarify, I'm not looking for investment advice and where the market might be going, but rather my understanding of the tax treatment of this loss. If we make one assumption: the price of the stock will be relatively similar Tuesday, Dec 28, 2021 and Tuesday, Jan 4, 2022, and:

 

In 2021, I have long term capital gains of 12k 

In 2022, I don't plan to have any long term capital gains. 

 

Would it be more beneficial to realize 20k in capital losses in 2021, or wait until those losses can offset purely income or short-term capital gains in 2022+. 

 

Thank you!