Why YTM matters more than coupon rate
The coupon rate is set when the bond is issued and never changes.
The YTM, however, reflects market reality: it incorporates the price you actually pay (which may be above or below par) and the eventual return of face value at maturity.
Two bonds with identical 5% coupons can have very different YTMs if their prices differ. When comparing bonds, always look at YTM, not coupon rate.