The RI Optimizer does not exclude underutilized instances. The tool references net instance hours run rather than just the count of the instances.
For example, if an instance only has 10 hours in a month, only those 10 hours will be considered in the recommendation calculation.