At least your portfolio had to be in gain position. My portfolio in net realized loss for 2022. Didn't need to pick losers to sell.
You don't need to close position before market goes away. If it does, it's a worthless stock deduction. Doesn't hit the 1099. It's a manual entry in TurboTax. Taken 2 in last couple years.