Over the past 12 months, shares in Royal Dutch Shell (LSE: RDSB) have outperformed the BP (LSE: BP) share price. Shell has returned nearly 8%, excluding dividends paid to investors, while shares in BP have only added 4%. However, past performance should never be used as a guide to future potential. So, which company would I buy for the next five to 10 years? 5G is here – and shares of this ‘sleeping giant’ could be a great way for you to potentially profit!According to one leading industry firm, the 5G boom could create a global industry worth US$12.3 TRILLION out of thin air…And if you click here we’ll show you something that could be key to unlocking 5G’s full potential…BP share price outlook I’m pretty optimistic about the outlook for the BP share price. It’s clear to me the world is steadily moving away from oil and gas towards more renewable energy sources. In my opinion, companies need to get with the trend, or they risk being left behind. BP is doing just that. The company plans to invest tens of billions of dollars over the next few years to increase its renewable energy generation substantially. I think this is the right decision. It could futureproof the business and help protect growth for years to come. Of course, there’s a risk that the company may spend much of this money for less return than hoped for. If oil and gas remain primary power sources for the world for longer than expected, management may regret spending so heavily on renewable projects. I feel that’s a considerable risk hanging over the BP share price right now. The challenge for ShellShell’s renewable energy ambitions are nowhere near as large as those of BP. The company aims to double the electricity it sells, delivering the equivalent of more than 50m households with renewable electricity by 2030. Meanwhile, BP wants to increase its output more than 10-fold to 50GW by 2030. Further, BP has laid out plans to be a net-zero business by 2050. Shell had plans to hit the same target but was recently told by a Dutch court that its agenda didn’t go far enough. The company’s strategy was attacked for being “not concrete and is full of conditions.“Still, while Shell’s plans might not be as ambitious as BP’s, the company could benefit if oil and gas remain a crucial component of the global energy mix. The BP share price could underperform Shell’s if that turns out to be the case. The company also owns one of Europe’s most extensive energy trading operations, which gives it a substantial competitive advantage over competitors and unrivalled market access. These qualities could enable the business to navigate the headwinds facing the sector better than its peer. Which company to buy? Considering all of the above, if I had to choose between Shell and BP, I’d pick the latter. BP has been producing renewable energy for several decades, and I think it has more experience in the sector. I’m also encouraged by the company’s ambitious growth plans over the next few years. While I’m aware that a strategy of diving headfirst into renewable energy comes with its own challenges, I think the potential for reward more than outweighs these risks. That’s why I’d buy BP today. Rupert Hargreaves | Tuesday, 15th June, 2021 | More on: BP RDSB Our 6 ‘Best Buys Now’ Shares See all posts by Rupert Hargreaves The Shell vs BP share price rated Image source: Getty Images Our 5 Top Shares for the New “Green Industrial Revolution” It was released in November 2020, and make no mistake:It’s happening.The UK Government’s 10-point plan for a new “Green Industrial Revolution.”PriceWaterhouse Coopers believes this trend will cost £400billion……That’s just here in Britain over the next 10 years.Worldwide, the Green Industrial Revolution could be worth TRILLIONS.It’s why I’m urging all investors to read this special presentation carefully, and learn how you can uncover the 5 companies that we believe are poised to profit from this gargantuan trend ahead! Rupert Hargreaves has no position in any of the shares mentioned. The Motley Fool UK has no position in any of the shares mentioned. Views expressed on the companies mentioned in this article are those of the writer and therefore may differ from the official recommendations we make in our subscription services such as Share Advisor, Hidden Winners and Pro. Here at The Motley Fool we believe that considering a diverse range of insights makes us better investors. Renowned stock-picker Mark Rogers and his analyst team at The Motley Fool UK have named 6 shares that they believe UK investors should consider buying NOW.So if you’re looking for more stock ideas to try and best position your portfolio today, then it might be a good day for you. Because we’re offering a full 33% off your first year of membership to our flagship share-tipping service, backed by our ‘no quibbles’ 30-day subscription fee refund guarantee. Simply click below to discover how you can take advantage of this. Enter Your Email Address Access this special “Green Industrial Revolution” presentation now I would like to receive emails from you about product information and offers from The Fool and its business partners. Each of these emails will provide a link to unsubscribe from future emails. More information about how The Fool collects, stores, and handles personal data is available in its Privacy Statement.