@Jim Pfeifer Has good points here. Note, however, that you can only use losses from syndications is you qualify as a real estate professional for tax purposes, and meet the material participation standards for your own rental real estate portfolio and make the grouping election. So this works in the right circumstances but have a solid plan and talk it through with someone that specializes in real estate taxes. As Jim also mentioned, bonus depreciation is scheduled to phase out...so this strategy is going to lose much of its value in the coming years.
Here's a few other ideas:
Installment Sale - spreads capital gains out over a number of years, which may be helpful. Note that depreciation recapture is still due in the year of sale.
IRA/401(k)/HSA - contributions can reduce tax from the a real estate sale.
Cost Segregation - You can buy a new property, do a cost segregation study to generate a bunch of depreciation and use bonus depreciation in year one. These losses from the bonus depreciation in the new property can be used to offset gains in the old property.
Carryforward Losses - If you have suspended carryforward losses they will be released when you sell and that can offset some of the gains/taxes from the sale.
10131 Exchange - You can also list a DST as a backup if you cannot find a property you like for 1031 replacement property. Then, if your time period is about to expire you can decide whether you want to just let the 1031 lapse. As @Dave Foster mentioned, there's no penalty for doing this. Sometimes you can even use a failed 1031 to your benefit by deferring the capital gains to the next year.
Lower Capital Gains Brackets - If you have flexibility with your income such that you can minimize other income in the year of sale, you may be able to take advantage of 0% taxation in the Standard Deduction, 12% Ordinary Income Rates (which is pretty low), and 0% long term capital gains rates. It really depends on your other income and if you have much flexibility. @Joe Mayol