Surprisingly, it does take into account margin of defeat. If you go by pure wins/losses, Sagarin says that the Jazz are by far the worst team. But consider the scores, and they do better. Probably because of some of their early on close games against good teams, and their strength-of-schedule...