Both are significant chemicals that would be indicated for insomnia
However, please discuss with your physician your concern. It is important that your physician be aware of the medications and any herbal, otc you take.
In the appropriate situation, there is a low concern for difficulty.
And, we are going after the cause, not just the symptom.