This trial is conducted in Japan. The purpose is to compare the safety of once-weekly dosing of semaglutide (0.5 and 1.0 mg) versus sitagliptin (100 mg) once daily, both as monotherapy during 30 weeks of treatment in Japanese subjects with type 2 diabetes.