There is a big difference between the two :
— « Désolé » simply expresses your personal feeling about something. You feel bad that something happened to someone.
— « Je m'excuse » means that you accept responsibility for the error or the situation for which you express your regrets, the fault lies with you.
Dire désolé exprime simplement vos sentiments ...