This trial is conducted in Africa, Asia, Europe and South America. The aim of the trial is to evaluate efficacy and safety of semaglutide once-weekly versus sitagliptin once-daily as add-on to metformin and/or TZD (thiazolidinedione) in subjects with type 2 diabetes.