Installed a new roof for rental - bonus deprec. or sect 179?

Is there a benefit to Section 179 vs bonus depreciation (assuming that bonus depreciation is retroactive to 100% for 2023)?  Is the recapture the same for both?