Scotland produced a spirited display but lacked the guile to get over the line as they went down to a 32-15 defeat by world champions South Africa at Murrayfield on Sunday.