Man vs. Machine: AI narrowly beats out human scholar in test of scientific skill