Jai Sri Ganesha,
There is difference between the confidence and the ego,
Confidence based on the truth of conscience but Ego,
Ego based on falsehood with extra mileage unto passion,
In the battle, Ravana was pitched on the truth of Ego and Ram was unto truth of his conscience and fair will,
May Lord bless all,
Thanks please