This is a fun hypothetical, and the answer depends on how you weigh their strengths. Optimus Prime brings overwhelming size, firepower, and durability as a towering robot, while Solid Snake relies on stealth, cunning, and improvisation rather than brute force.
In a head-on brawl, Optimus Prime has the clear physical edge. Snake's best hope would be outsmarting his opponent rather than trading blows, but that's a tall order against a giant machine.