My (purely anecdotal as opposed to scientific) observation is that sharks are wary of OC SCUBA divers underwater.
I've been on dives where I was using OC but another diver was using CCR, and I've seen sharks reacting completely differently - very reluctant to let me get near, but completely relaxed and curious around the CCR diver.
Similarly, I've dived the same fairly shallow reef on OC scuba and free diving. On OC, only lazy bottom-dwelling sharks; free diving, we saw several small whaler sharks that came to investigate.
On the surface it is a different story. Having half-a-dozen divers floating on a mermaid line queueing to get back on the boat, we were often buzzed by bronze whaler sharks. And the poor guy who was attacked in Sydney in 2022, that shark appeared very much to be feeding.