Set the Instant Pot to 'Sauté' mode. Add olive oil, then the chopped onion. Sauté for about 3 minutes, or until the onion is softened.
Add minced garlic and cook for an additional minute until fragrant.
Place the chicken breasts into the pot and season with cumin, chili powder, oregano, salt, and pepper. Pour in the chicken broth, white beans, diced green chilies, and corn.
Cancel the 'Sauté' mode and secure the lid on the Instant Pot. Set the valve to 'Sealing'. Select 'Pressure Cook' on high for 15 minutes.
Once cooking is complete, let the pressure release naturally for about 10 minutes, then do a quick release to let out any remaining pressure.
Carefully remove the chicken from the pot and shred it using two forks. Return the shredded chicken to the pot.
Stir in the heavy cream if using, and mix until well combined. Adjust seasoning as needed.
Serve hot, garnished with shredded cheese and chopped cilantro if desired.