Add the olive oil, onion, and garlic to the Instant Pot. Press Sauté and cook, stirring often, until the onion is soft, 4 to 5 minutes. Press Cancel.
Add the tomatoes with their juices, tomato paste, water or broth, salt, and Italian seasoning if using. Stir well, scraping the bottom of the pot.
Lock the lid, set the valve to Sealing, and pressure cook on high for 10 minutes.
Let the pressure release naturally, then open the lid.
Blend until completely smooth with an immersion blender, or cool slightly and blend in batches in a regular blender with the lid vented.
Stir in the sugar and milk if using. Taste, adjust the salt, and serve.