The upvoted answers to this questions, if correct, indicate that, under US law, if one buys and sells an equity within 30 days for a loss, and does not repurchase anything substantially identical within 30 days, the loss can legally be deducted from gains (including short-term gains) for tax purposes.
Those answers were written in mid-2019. Has anything changed regarding this since that time?