It depends on the need. Formatting the smartphone means that you will get the mobile as it was when you got in box because you have to install all your required apps again.
However it is suitable if you want quick method to clean your mobile because formatting or resetting makes it fast.