Sold my house. Have capital gain. Want to sell some stock having unrealized capital losses to offset the capital gain. Better to sell stock having short-term or long-term capital losses? Or does it not matter overall?

- I sold my house (live in fiance's house now).  Have long-term capital gain of $100K from the sale (after deducting the primary residence exclusion)

- No other long-term nor short term capital gains/losses so far in 2022

- I have stock whereby currently the unrealized short-term capital loss is (-$80K) and long-term capital loss is (-$50K)

 

I would like to offset the $100K capital gains by selling some of my stock (ideally sell stock that adds up to $100K capital loss so there is no net capital gain for 2022).  Is it more beneficial from a tax savings perspective to sell more of the stock with a long-term capital loss, or a short-term capital loss, or does the proportion not matter? e.g:

 

- Case A: sell stock that results in $50K long-term capital loss and $50K short-term capital loss?

- Case B: sell stock that results in $80K long-term capital loss and $20K short-term capital loss?

- or any other Case? or does not matter overall?

 

Just wanted to see if there were conditions that I may not be aware of to factor into the decision-making on the stock selling.