Ukraine is a democracy, and it's good to see that it is allowed to show sympathy for Palestinians.
Zelenskyj himself is Jewish, and Israel is fighting Iran that is an ally to Russia.
So from a Ukrainian foreign policy and probably for Zelenskyj personally it makes a lot of sense to sympathize with Israel.
AFAIK Israel has also helped Ukraine with humanitarian aid and medical supplies. Not a lot, but at least a little.
That however doesn't change the fact that Netanyahu is wanted for war crimes against the Palestinians, and the war against Iran is illegal, and has also included several war crimes against Iran by Israel and USA already in the first few days.