Maybe that depends on the severity of your insomnia and your life. If you have to work for a living, it's better to feel groggy in the morning, take some strong coffee, than not get any sleep and do a bad day's work.
I've tried many things, now melatonin works. In the past, Trazadone did, but not more than once a week.