Pick through 1 pound of dried pinto beans, discarding any stones or shriveled beans, and rinse in a colander. Put the beans in a large pot, cover with water by 2 inches, and bring to a boil. Boil for 2 minutes, remove from the heat, cover, and let stand for 1 hour. Drain and rinse. (Overnight soak: cover with water by 2 inches and soak 8 hours. No soak needed for the Instant Pot.)
While the beans soak, tear the stems off 3 dried ancho chiles and shake out the seeds. Heat a dry cast-iron skillet over medium-high heat. Lay the chiles flat and press with tongs for 30 seconds per side, until they puff slightly, darken a shade and smell smoky and sweet — do not let them blacken. Turn off the heat, cover the chiles with hot water, and soak for 20 minutes until soft and pliable.
Heat 2 tablespoons of vegetable oil in a large Dutch oven or heavy pot over medium heat. Add 1 diced medium yellow onion and cook 5 to 7 minutes, until soft and translucent. Add 4 minced garlic cloves and cook 1 minute more, until fragrant. Stir in 1 tablespoon of chili powder, 2 teaspoons of ground cumin, 1 teaspoon of smoked paprika and 1 teaspoon of dried Mexican oregano, and cook, stirring constantly, for 30 seconds.
Scoop the onion and garlic into a blender. Add the soaked ancho chiles, 2 tablespoons of tomato paste, 1 teaspoon of brown sugar and 1 cup of water. Blend on high for 1 to 2 minutes, until completely smooth.
Return the purée to the pot. Add the drained beans, the remaining 7 cups of water (6 cups total water for the Instant Pot) and 1 bay leaf, and stir. Bring to a boil, then reduce to a gentle simmer, cover with the lid slightly ajar, and cook until the beans are completely tender and creamy inside: 2 to 2 1/2 hours on the stovetop, 8 hours on low in the slow cooker, or 25 minutes at high pressure with a full natural release in the Instant Pot. If the sauce is thin, simmer uncovered for the last 20 minutes.
Remove the bay leaf. Stir in 1 1/2 teaspoons of kosher salt, 1/2 teaspoon of black pepper and 1 1/2 tablespoons of distilled white vinegar. Taste and adjust with more salt or another teaspoon of vinegar. Let the beans rest off the heat for 10 minutes, then serve hot, topped with crumbled queso fresco, chopped cilantro and thinly sliced red onion, with warm tortillas on the side.