Both are good if you want a quick start & temporary solution or as a landing page for your all. But in a long run it is better to have a custom website.
I have heard this opinion from some other people as well. I'm wondering what are the particular needs that call for a custom website vs. staying with wix/squarespace or another similar service?