Unfortunately, cooking rice like pasta (in boiling water then draining) is the worst method! Because like that most of the flavour disappears with the water, and that's a pity.
On the other hand in a rice-cooker or using the pilau method, the rice has only the volume of liquid that it will absorb, and so retains its flavour.
To succeed with pilau rice, there are 2 important points
1) You should never use more than one and a half time the volume of liquid than volume of rice.
2) cooking time should not exceed 20 minutes at 200°C (390°F), covered.
Sometimes, you might read in other recipes, that pilau rice can only be cooked in oven. That's not true. Yes, it's better in the oven because it's softer and cooks more evenly, but not obligatory. You can cook it on low heat, covered, without stirring.
You can also vary the taste by adding a bayleaf during cooking or a bouquet garni
or other herbs of your choice. You can also change the chicken stock for vegetable or beef stock, or add some dry white wine. So, let your imagination guide you.