In a large skillet, heat the vegetable oil over medium heat. Add the chopped onion and sauté until it becomes translucent, about 3-4 minutes.
Stir in the minced garlic and cook for an additional 30 seconds until fragrant.
Add the rice to the skillet and cook, stirring frequently, until the rice is lightly toasted, about 2-3 minutes.
Pour in the chicken broth and add the diced tomatoes with their juices, cumin, chili powder, salt, and black pepper. Stir to combine.
Bring the mixture to a boil, then reduce the heat to low. Cover the skillet and simmer for 18-20 minutes, or until the rice is tender and the liquid is absorbed.
If using, stir in the frozen peas during the last 5 minutes of cooking.
Remove from heat and let the rice sit, covered, for an additional 5 minutes. Fluff with a fork and garnish with chopped cilantro before serving.