Quantum oracles give an advantage for identifying classical counterfactuals