It's funny, but as others have already pointed out, most heroic litterature revolves around the same plot devices.
In fact, SW and HP are opposite stories.
On the one hand, SW is all about the redemption of Darth Vador, from arch-villain back to his good self. The message is optimistic : it doesn't matter how far you've fallen, you can always come back. On the other hand, in HP, the villain is marked by a fate he can't escape. There is no turning back, once the fall has begun, he's doomed - hey, even his soul we ultimately get to see is damaged beyond recognition. Moreover, SW is about how a 'lone ranger' type of hero (the last jedi, Luke), can overcome almost by himself an entire army, while HP is all about "it doesn't matter how much you're gifted, if you don't have friends to team up with you, your ass is fried".
Very, very different stories.