Start with whether there is power at the water
Dewatering happens where the water is, and that is frequently not where the supply is. Early-phase construction, mine sites running ahead of grid infrastructure, agricultural abstraction points and pipeline rights of way all share the same characteristic: the duty exists before the electrical supply does.
Running cable to the pump is sometimes the answer and sometimes not. A long temporary run has its own cost, its own voltage drop, and its own exposure to plant traffic. Where the supply is marginal or distant, a diesel package removes the question entirely.
Where adequate supply already exists at or near the duty point, the calculation reverses and electric is usually the better answer for the reasons below.