$D^0$ and $\Lambda_c^+$ elliptic flow comparison with pions