Pooling or Sampling: Collective Dynamics for Electrical Flow Estimation