seo – Two subages on one website with almost identical content

I’m creating a website that is comparing stuff, let’s say it compares programming languages for the sake of explaining my question.

I’m building a structure where the url/slug will contain the two languages the page is comparing. My goal is to rank high both on “C++ vs C#” and “C# vs C++”.

The way I see it I have three options, but I don’t know which would bee the best.

Option 1
Have both

www.example.com/c++/vs/c#
www.example.com/c#/vs/c++

Pros: Might be better from a SEO perspective?

Cons: Duplicated content (both pages will roughly be the same), which is probably bad form a SEO-perspective?

Option 2
Have one

www.example.com/c++/vs/c#

Pros: No duplicated content

Cons: Might rank better on “C++ vs C#” compared to “C# vs C++”?

Option 3
Have one main page

www.example.com/c++/vs/c#

and then another which redirects to the first (through 301/302 or something else?)

www.example.com/c#/vs/c++

Pros: No duplicated content

Cons: Might rank better on “C++ vs C#” compared to “C# vs C++”?

So what what is the best practise when it comes to this?