Rinse the basmati rice in a bowl of cold water, swirling gently with your fingers and draining, 3 to 4 times until the water runs mostly clear. Cover with fresh water and soak for 20 minutes. Chop the vegetables while it soaks, then drain the rice well in a strainer.
Heat the ghee in a heavy-bottomed pot over medium heat. Add the cumin seeds, bay leaf, cardamom, cloves and cinnamon stick and stir for 30 to 45 seconds, until the cumin sizzles and the spices smell fragrant.
Add the sliced onion and cook, stirring often, for 5 to 6 minutes until soft and light golden at the edges.
Stir in the ginger, garlic and green chile, if using, and cook for 1 minute until the raw smell disappears.
Add the carrot, green beans, cauliflower and peas. Stir for 2 to 3 minutes so the vegetables are coated in the spiced ghee.
Add the drained rice and stir very gently for 1 to 2 minutes, turning the grains over without breaking them, until they look slightly translucent at the edges.
Pour in the 2 1/2 cups water, then add the salt and garam masala, if using. Stir once, taste the water (it should taste pleasantly salty) and bring to a full boil over high heat, about 3 to 4 minutes.
As soon as it boils, reduce the heat to the lowest setting, cover tightly and cook for 12 to 15 minutes without lifting the lid, until the water is absorbed and small steam holes appear on the surface.
Turn off the heat and leave the pot covered for 10 minutes so the rice finishes steaming.
Remove the lid, fluff the rice gently with a fork, and pick out the bay leaf and cinnamon stick if you like. Scatter over the cilantro and serve hot.