Realize long term gain to offset loss?

I currently have a realized long term loss of around $9k for 2023 from selling shares. I have several other long term holdings which are well in profit. I understand that I can only deduct up to a 3k loss against capital gains or income each year.

 

Should I sell stock and realize a gain before the end of the year to offset the remaining 6k loss to avoid being taxed on this gain when I sell it in the future?