Azeri terrorist state bombed Stepanakert with white phosphorus and napalm with no consequences.
BTW, Russia has already used white phosphorus against civilian targets in this war, if I am not mistaken.
Israel is, of course, using those in Gaza.
I'd say legality has long lost its meaning in international relations. Not that it ever had any in this particular regard.
I've read that even not using expansive (those that expand, not those that cost more monies) bullets was not result of any humanism, but of the military logic that a soldier wounded by a conventional bullet stops being a combatant and becomes a logistical burden, while a soldier dead from a gruesome wound just stops being a combatant, possibly helping to motivate his comrades in arms.