A study published in The Journal of Internal Medicine found that coffee and cannabis activate some of the same pathways in the brain. https://onlinelibrary.wiley.com/doi/abs/10.1111/joim.12737