Imfinzi and Keytruda work in a similar way to treat several forms of cancer. However, they're different in some of their side effects. And Keytruda is used to treat more types of cancer than Imfinzi. If you have questions about which drug may be better for your treatment plan, talk with your doctor.