These are both after Turkey take an hostile attitude against Israel starting from Mavi Marmara and Davos. Israel was more pro-Turkey. Akp just screwed the relations with them for nothing. It was making more sense geopolitically to cooperate with Israel, they are holding the strings of US politics.