Earlier quoted context omitted.
I don't understand why you wouldn't sell and invest elsewhere in this case.
Apparently, even with all these rules designed to damage the profitability of landlords, being landlord must be extremely profitable as they keep doing it.
Even if you don't live in the house it still costs money in taxes, maintenance, and possibly mortgage so renting it would offset that. Having someone living in the house would also reduce maintenance costs. However, if renting can cost you more money at the end due to tenant protections, it would be wise to take a fixed loss of keeping the house empty than try your luck on rental market. Landlords with multiple units can price the risk into the rent so they can come ahead but with just one unit your risk-adjusted rent will be way out of the market.