WATCH: Clinton, Sanders spar over Israel-Palestinian conflict at NY debate

Bernie Sanders accused Hillary Clinton of neglecting the Palestinians, and Clinton said her rival was more prone to criticizing than solving problems when it comes to the Israeli-Palestinian conflict.

The Independent senator from Vermont and the former secretary of state had a lengthy and heated exchange on Israel and the Palestinians during their debate in Brooklyn Tuesday evening, just days ahead of the New York state primary.

Sanders took issue especially with Clinton’s speech last month to the American Israel Public Affairs Committee (AIPAC).

“You gave a major speech to AIPAC, which obviously deals with the Middle East crisis and you barely mentioned the Palestinians,” he said during the debate broadcast by CNN.

He suggested Clinton was unwilling to confront Israeli Prime Minister Benjamin Netanyahu.

“In the long run, if we are ever going to bring peace to that region, we are going to have to treat the Palestinian people with respect and dignity,” he said. “There comes a time when we pursue justice and peace that we will have to say Netanyahu is not right all the time.”

Sanders’ campaign simultaneously released an email quoting journalist Jeffrey Goldberg as saying that Clinton as secretary of state during President Barack Obama’s first term “stayed away” from the Israeli-Palestinian conflict, as well as a tweet reiterating his stance on the conflict.

Sanders stood by claims he has made in recent weeks that Israel’s actions during the 2014 war with Hamas in the Gaza Strip were “disproportionate.”

“If you’re asking me, and not just me but countries across the world, was that a disproportionate response. Yes,” Sanders said.

Clinton noted that Hamas militants fired rockets on Israel from civilian areas.

“I don’t know how you run a country when you are under constant threat,” she said, but added that she worked hard when she was secretary of state to bring about peace talks. “It does not mean that we do not continue to do everything we can to reach a two state solution.”

She depicted Sanders as a dilettante. “Describing the problem is a lot easier than trying to solve it,” she said.

“I can tell you right now I have been there with Israeli officials going back more than 25 years that they do not seek this kind of attacks,” she said. “They do not invite the rockets raining down on their towns and villages.”

READ: BERNIE SANDERS’ NEW JEWISH OUTREACH DIRECTOR AN OUTSPOKEN CRITIC OF ISRAEL

Clinton also criticized the Palestinians’ refusal to negotiate in creating an independent state. “If Yasser Arafat had agreed with my husband at Camp David in the late 1990s to the offer that [then Israeli] prime minister [Ehud] Barak put on the table, we would have had a Palestinian state for 15 years already,” she said.

She then referred to Sanders’ recent comments to the New York Daily News, where he mistakenly said that Israel killed “10,000 innocent people” during the 2014 war, before he was corrected.

“[W]hen asked about a number of foreign policy issues, he could not answer about Afghanistan, about Israel, about counter-terrorism, except to say if he had some paper in front of him, maybe he could,” Clinton said. “I think you need to have the judgment to be ready on day one to be president and commander in chief.”

Sanders, the first American Jew to win nominating contests for a major party, said he remained “100 per cent” pro-Israel and noted, as he has in the past, that he spent months on a kibbutz in the 1960s.