It depends on how we are using SEO in both. If we optimize the site well for search engine, then both are good. We need to consider some factors in Wordpress that is the plugins used in Wordpress. Some of the plugins may affect the performance of the site(loading time).
Wordpress is good for SEO purpose as every post created on wordpress have the 100% chance to get indexed in google in no time.. and that's the thing what we do in SEO. Otherwise it takes a long to get indexed other pages on google rather then wordpress .