Rinse 2 cups of dry pinto beans under cold water to remove any debris. Place beans in a large pot and cover with 6 cups of vegetable broth.
Bring to a boil, then reduce heat to low and simmer for 1.5 to 2 hours, or until beans are tender. Optionally soak beans overnight to reduce cooking time.
In a large skillet over medium heat, add a splash of oil or some broth and sauté 1/2 medium diced onion and 6 minced garlic cloves until onion is translucent and fragrant, about 5 minutes.
Stir in 3 diced Roma tomatoes, 1 tablespoon cumin, 1-2 teaspoons salt, 1 teaspoon oregano, 1/4 teaspoon cayenne pepper, and the can of diced green chili. Cook for 5 minutes to meld flavors.
Drain the cooked beans and add them to the skillet with the sautéed mixture. Mash beans to desired consistency using a potato masher or fork. Add reserved broth for creamier texture if desired.
Stir in 1/2 teaspoon liquid smoke if using, to add depth of flavor.
Taste and adjust seasoning as needed. Serve hot, garnished with fresh cilantro and crumbled Cojita cheese.