The contest in Kerala's Palakkad Assembly bypoll was described as a triangular fight, but Congress candidate Rahul Mamkootathil on Saturday won by a record margin of over 18,000 votes and it turned out to be more of a battle between the second- and third-placed candidates.