Semaglutide, tirzepatide, and bariatric surgery were linked to lower rates of obesity-associated cancers compared with DPP-4i.