Baghdad's row with Ankara could benefit each side