Anas Sarwar challenged John Swinney to "move aside" as he pledged to become Scotland's next first minister.