Mutual funds and exchange-traded funds (ETFs) have a lot in common, but also have some fundamental differences.