Implications of the muon anomalous magnetic moment and Higgs-mediated flavor changing neutral currents