The Namek Saga arc from Dragon Ball may be the inspiration behind Eiichiro Oda's One Piece, given the similarities between heroes and villains.
Dragon Ball Z: Namek Saga but it's a feature film
Whether it's Jujutsu Kaisen or Attack on Titan, several iconic Shonen manga take inspiration from canon manga. In the manga industry, it is not uncommon to see similar aspects and parallels between two iconic manga. In a similar way, Eiichiro Oda took inspiration from Akira Toriyama's Dragon Ball for One Piece.
However, there is one particular arc that highlights eerie similarities between the two anime. It also reflected Akira Toriyama's influence on Oda's work and how it underscored the latter's creative genius as a mangaka. Of course, The Namek Saga was the inspiration behind One Piece.
Although both characters are different in their abilities, what makes them similar is that they share the untapped power within them. From Goku's Super Saiyan legend to Luffy becoming the new Joy Boy with his Gear 5 transformation, both series follow the essence of a prophecy coming true. Eiichiro Oda's work reflects similar elements from Akira Toriyama's masterpiece.