It varies. Sometimes cell service wins. I recommend having multiple phones with a mix of both WiFi and cell. That said, anecdotally WiFi wins more often than would expect, perhaps a majority of the time.
Make sure to review both of these threads before you go: