I’m not saying this flow is good, but you can deregister and disable iMessage, even if you don’t leave iOS, but especially if you do: https://selfsolve.apple.com/deregister-imessage/
It’s not intuitive of course, but you can totally turn it off and deregister, even if you don’t have your iPhone anymore.