the yield does not include the capital gain from the price discount, whereas the ytm does include it.