The two parts are actually Israel and Hamas. If Israel wants peace, there’s not much the US is going to do to force them to keep fighting. And conversely, if Hamas doesn’t want peace, there’s nothing the US can do (short of entering the war directly) to keep Israel from fighting back. It’s all up to Israel and Hamas. The US (and Iran on the other side) are secondary players.