Action minimizing properties and distances on the group of Hamiltonian diffeomorphisms