Superconductivity in a Fermi liquid from repulsive interactions: The role of electron–phonon interaction