Spain, the Netherlands, Ireland and Slovenia will not participate in the contest after organizers declined to expel Israel over its conduct of the war against Hamas in Gaza.