Spain's boycott of the Eurovision song contest over Israel's war in Gaza puts it "on the right side of history", Prime Minister Pedro Sánchez said on Friday, ahead of the final in Austria.