The Dirichlet problem in a planar domain with two moderately close holes