Get your taxes done using TurboTax

There is no way to avoid the capital gains since it has been a rental for 5 years or more   and you must recapture the depreciation you had to have been taking all these years.   If you have not been taking depreciation then RUN to a local tax pro to get the 2020 return completed and fix that error ... it is not a DIY situation.