Cooking the rice in the oil is essential, so a rice cooker won't work well. An Instant Pot (affiliate) is a better option.