Turkey and Israel exchanged tit-for-tat diplomatic withdrawals over President Recep Tayyip Erdogan’s pro-Hamas stance in the regional conflict. But behind that, the picture is more nuanced.