Using a method to cook basmati rice without a direct flame is the best way to cook basmati rice. This means cooking it in an oven or in an Instant Pot or rice cooker like this Instant Pot basmati rice recipe. Cooking in this way more evenly distributes the heat to the bottom of the pan and the rice which means the rice cooks more evenly. Also, an important step in cooking basmati rice is to first toast it in oil before proceeding to add the liquid. This step contributes to better flavor and a fluffier texture.