Personally, I would route via NRT.
TK parks a lot of planes at remote parking in IST, so you then have to get bussed in to the terminal. I have been in long lines to clear inbound security to transfer.
Japan is less chaos and probably shorter lines. But you might have to take a shuttlebus to change terminals in NRT, which would add about some time?