DOHA, Qatar — Starkly different visions of how to end the war in Gaza are at the center of thorny and slow-moving negotiations between Israel and Hamas in Doha this week, with officials warning that a deal to halt the fighting and release some hostages could be weeks away, or upended entirely if Israel moves ahead with a planned assault on the southern city of Rafah.