See https://www.thetaxadviser.com/issues/2020/oct/maze-real-estate-rentals.html
and
https://www.taxnotes.com/research/federal/irs-private-rulings/letter-rulings-technical-advice/s-corp...