Comparing yields doesn't take into account the shape of the yield curve. So for example if you take two bonds that are both fair to the curve, and the curve is very steep then a 3 year bond will have a higher yield than a 2.75 year bond even though it's not really cheaper. (You are just being paid to extend duration).
(Asset swap spreads are better than just making comparisons of raw yields, but really you should use the OAS (option-adjusted spread) pioneered by the old Salmon Brothers. Basically figure out how much you need to bump the LIBOR curve to discount the cash flows of the bond to equal its current price. If you don't understand this bit, don't worry.)
Using the swap curve to assess relative value of bonds works well - provided the swap curve is fair. It tends to be reasonably fair in EUR, but can be distorted sometimes in USD and most of the time in GBP.