These two conflicts have a lot of points of views. In russia ukraine its a bit easier because russia attacked ukriane so its pretty clear that russia is the "evil". But with israel and gaza a lot of people confuse palestinians with hamas and israeli people with the israeli government. Ad for why ukraine supports israel when they are much closer to gaza i think its because they really need the us and eu to help so they didnt even have an option.
I think it's more that people confuse the Israeli government with "the Jewish people", when the truth is that they are very separate. The Israeli people are somewhere in the middle. There seems to be a bunch of them who are quite supportive of their government's actions.