Both platforms can rank. Search engines care about content, structure, speed and links far more than the logo of the platform underneath. That said, WordPress gives you finer control: you can edit URLs, structured data, redirects, sitemaps and page templates, and you can add tools such as Yoast to manage titles and descriptions. If search traffic is central to your plan, that control is valuable, and our WordPress SEO services page explains what we do with it.
Speed depends on build quality and hosting on both sides. A hosted builder gives you decent speed without effort but little room to tune it. WordPress can be extremely fast or painfully slow depending on hosting, theme and plugins, so it rewards careful work.
Growth is where the gap widens. Memberships, bookings, multilingual content, large blogs, custom e-commerce and complex integrations are all well trodden paths on WordPress. If you might sell products later, see WooCommerce development.