Set the Instant Pot to cook at high pressure. When the timer goes off, quick-release the pressure and test the potatoes for doneness. Reserve a cup of the cooking water, if using instead of milk.
Drain the potatoes and transfer them to a medium bowl. Add the butter, milk, and sour cream, if using, and mash with a potato masher until light and fluffy. Add salt and pepper, to taste.