Heat 1 tablespoon of olive oil in a 10-inch skillet over medium heat.
Add the chopped onions and cook for about 2 minutes, stirring frequently, until translucent.
Add the minced garlic and cook for 30 seconds, stirring constantly.
Increase the heat to medium-high and add the remaining ½ tablespoon of olive oil.
Add the sliced mushrooms, ¼ teaspoon of salt, and pepper. Cook for 5 to 7 minutes, stirring occasionally, until the mushrooms have released their liquid and started to brown.
Pour in the chicken broth and bring to a simmer.
Remove the skillet from the heat and stir in the heavy cream, sour cream, remaining ¼ teaspoon of salt, and dried rosemary until smooth.
Add the uncooked rice to a 4x6-inch or 5x5-inch baking dish.
Pour the mushroom sauce over the rice and stir gently to combine.
Place the baking dish on a rimmed baking sheet to catch any spills.
Cover the dish tightly with aluminum foil and bake for 40 minutes.
Remove the foil and serve hot.
Notes
Don't skip the browning step. Cooking the mushrooms for a full 5 to 7 minutes lets them release their moisture and develop flavor. If you crowd them or pull them too early, the sauce will taste watery.Use regular white rice, not instant. Instant or quick-cooking rice absorbs liquid too fast and turns to mush. Medium or long-grain white rice holds its shape and cooks evenly in the 40-minute bake time.Cover the dish tightly. The foil traps steam, which is what cooks the rice. If it's loose, the liquid evaporates before the rice is done and you'll end up with crunchy, undercooked grains.Place the baking dish on a sheet pan. The sauce can bubble over as the rice absorbs it. A rimmed baking sheet underneath saves you from cleaning the oven.Let it rest for a few minutes before serving. The sauce thickens slightly as it sits, and the rice finishes absorbing the last bit of liquid.