This is somewhat analogous to the battleship -v- battleship battles. I think there were seven in WW 2, maybe 8, out of hundreds or thousands of other engagements.
The Bismark is the most famous, but that probably only happened because of biplanes.
I think it is a little different in that Battleships were originally designed to fight other Battleships but then rarely did first because their immense cost made them too valuable to risk and later because the increasing accuracy and payload of carrier-based aircraft made BB vs BB combat unnecessary.
It is interesting that the entire Iowa Class, America's most advanced Battleships never actually traded fire with an enemy Battleship. They would have off of Samar of course if Halsey hadn't left the northern flank of the Luzon invasion fleet completely open but even there it would only have been with one of the Yamato Class but even there it is telling that it was only one because the other one had been sunk the day before by Halsey's planes.
Tanks were not originally designed to fight other tanks. In the interwar period all militaries had Tank Destroyers. The thinking was that Tanks would go "over the top" to support infantry but they were armed to take out pill boxes and such, not other tanks. Experience showed in WWII that they needed to be able to fight other tanks but as
@SFBadger96 referenced most tank kills still came from aircraft, artillery, and panzerfausts/bazookas NOT other tanks.
The shaped charge made it possible for a light weapon carried by infantry to take out a tank. I have a general idea of what a shaped charge is but I do not understand the physics behind it.