Israel’s parliament on Monday passed a law approving the death penalty for Palestinians convicted of murdering Israelis, a measure that has been harshly condemned by the international community and rights groups as discriminatory and inhumane.

The passage of the bill marked the culmination of a yearslong drive by the far-right to escalate punishment for Palestinians convicted of nationalistic offenses against Israelis. Prime Minister Benjamin Netanyahu came to the Knesset to vote for the bill in person.

The law makes the death penalty — by hanging — the default punishment for West Bank Palestinians convicted of nationalistic killings.

Experts say the legislation has two key elements that will effectively limit the death penalty to Palestinians.

First, the bill makes the death penalty a default punishment for nationalistic killings in military courts, which try only West Bank Palestinians and not Israeli citizens. It says that only in special circumstances can military judges change the sentence to life imprisonment.

It gives Israeli civilian courts a greater degree of leniency in sentencing, with judges having the option to choose between the death penalty and life imprisonment.

The second element is how the bill defines the offense punishable by death: killing that rejects the existence of the state of Israel.

“It will apply in Israeli courts, but only to terrorist activities that are motivated by the wish to undermine the existence of Israel. That means Jews will not be indicted under this law,” Cohen said.

In case it is not clear, Nationalistic killing of Palestinians is not covered by this law at all, only Nationalistic killing of Israelis.

Literally creating a legal rule in which murdering an Israeli is worse, even if done with the same exact motivation, than murdering a Palestinian.