Rory McIlroy showed sympathy for Adam Scott after snatching the Australian Open title from under his nose.