Exactly. The rules state that you must not have access to any apartment thus you need to rent it. If you own and rent it, you are only subject to the lease you get.
The subject of how to exit German tax is not highly complicated if you follow some simple rules.