Asymmetric dark matter in main-sequence stars: interactions with electrons versus nucleons