Contamination of water sources in flood affected area

Needs discussion,

Whether open defecation in far off place is good or a simple pit latrine or a pour flush latrine inside a house is good??