Sort through the dried pinto beans, pick out any split or shrivelled beans and small stones, and rinse well under cold running water.
Set the Instant Pot to Sauté; melt 1 tablespoon of lard, add the diced onion and cook about 5 minutes until soft and golden; stir in the garlic, cumin, chili powder and Mexican oregano and cook 30 seconds more until fragrant.
Press Cancel; add the rinsed beans, the quartered onion half, the bay leaf, the jalapeño if using, and 6 cups of water; stir once, seal the lid, set the valve to Sealing, and pressure cook on High for 50 minutes.
Let the pressure release naturally for 15 minutes, then open the valve to release any remaining pressure; lift out the bay leaf and the quartered onion; drain the beans through a strainer set over a bowl and save the cooking liquid.
Set the Instant Pot to Sauté again and melt the remaining 2 tablespoons of lard; add the drained beans and mash with a potato masher right in the pot, adding splashes of the reserved cooking liquid until they reach the thickness you like; fry, stirring, for 3 to 5 minutes until thick, creamy and glossy; season with the salt, tasting as you go.
Spoon the hot beans into a bowl, scatter with crumbled cotija and chopped cilantro, and serve at once with lime wedges and warm tortillas.