Set Instant Pot to sauté, add chopped bacon, and cook until the bacon is browned and crispy. Use a slotted spoon to remove the bacon, leaving the grease in the insert.
Add the chopped onion to the bacon grease and cook for about 3 minutes, until translucent. Then add garlic and cook for an additional minute, making sure it doesn't burn.