Germany is asking the International Court of Justice to toss out a lawsuit brought by Nicaragua accusing Berlin of facilitating genocide in Gaza through its military and political support of Israel.