I think if there are two large species of ambush predators in your ecosystem it will be fairly common for either species to prey on the other species. Members of species A may eat members of species B about as often as members of species B eat members of species A.
I note that it is common for large predators to prey on small predators in addiiton to herbivores. There is no predator code that prevents larger predators from preying on smaller predators.
There are many species of predators where adults will sometimes prey on smaller and younger members of their own species. Obviously if they prey on smaller members of their own species they will prey on smaller members of closely related predator species and smaller members of very different predator species, as well as on smaller herbivores and omnivores.
For example, one time a great blue heron swallowed a snake at our pond, and snakes are all predators. Large pythons sometimes swallow small crocodilians and you can find photos of that on the internet.
Our pond was stocked with bass and bluegills. Bluegills eat smaller acquatic lifeforms and bass each bluegills as well as the smaller animals that bluegills eat. And bluegills probably eat baby bass.
You have probably seen drawings showing a small fish about to be eaten by a larger fish which is about to be eaten by third fish about to be eaten by a fourht fish, etc.
I note human hunter-gatherers get a lot of their food from preying on other animals, while civilized humans raise domestic animals to slaughter and eat and so are also partially predators. Humans mostly eat herbivorous animals, but sometimes eat other predators. My mother told me that when her brother was a boy at camp he shot and ate a rattlesnake.
So omniverous humans are partially pedators. Which means that any species of predators whose members sometimes prey on humans are capable of preying on other predators.
Here is a link to an article discussing many species who sometimes prey on humans.
https://en.wikipedia.org/wiki/Man-eating_animal
Humans often hunt members of those species, and sometimes eat them.
In the ocean, the larger carniverous sharks are apex predators. Toothed whales are also apex predators. But basking sharks and whale sharks, and the baleen whales, who are all filter feeders, can also be considered predators, since the small lifeforms which they filter out of the water include both plants and animals.
So not only the larger carniverous sharks and the toothed whales are apex predators of the sea. filter feeding sharks and whales can also be considered apex predators of the sea.
And so there are examples of apex sea predators preying on other apex sea predators.
"Humans are the biggest threat to bull sharks. Larger sharks, such as the tiger shark and great white shark, may attack them, but typically only target juveniles.2 Crocodiles may be a threat to bull sharks in rivers. Saltwater crocodiles have been observed preying on bull sharks in the rivers and estuaries of Northern Australia,[67] and a Nile crocodile was reportedly sighted consuming a bull shark in South Africa.[68]"
https://en.wikipedia.org/wiki/Bull_shark#Ecology
"Basking sharks have few predators. White sharks have been reported to scavenge on the remains of these sharks. Killer whales have been observed feeding on basking sharks off California in the US and New Zealand."
https://en.wikipedia.org/wiki/Basking_shark#Predators
"Tiger sharks are preyed on by orcas. Orcas have been recorded hunting and killing tiger sharks by holding them upside down to induce tonic immobility in order to drown the shark. The orcas bite off the shark's fins before disemboweling and devouring it.5"
https://en.wikipedia.org/wiki/Tiger_shark#Predation_by_orcas
"White sharks are sometimes preyed on by orcas, with which they also likely compete with for food.[106] The first recorded orca predation occurred at the Farallon Islands in 1997 when an estimated 4.7–5.3 m (15–17 ft) female orca killed an estimated 3–4 m (10–13 ft) white shark.[135] Another similar attack apparently occurred there in 2000, but its outcome is not clear.[136] Orca predation has since been documented on white sharks in other areas.[137][138] Around South Africa, orcas typically hunt white sharks in groups of two to six.[139] By flipping the sharks belly up, the whales trigger a paralytic state known as tonic immobility, allowing them to precisely target and consume the sharks' energy-rich livers.[140] In 2017, a live white shark was sighted with purported orca teeth marks, providing the first evidence of the species surviving such an attack.[141] White sharks often evacuate an area when orcas arrive, as has been documented both off South Africa and California.[138][142] However, a 2026 study near Neptune Islands concluded that orcas alone are unlikely to cause white sharks to leave an area long-term.[143] In addition to orcas, white sharks may fall prey to other sharks, including older white sharks, as pups and juveniles.[64]"
https://en.wikipedia.org/wiki/Great_white_shark#Mortality_and_health
The largest of all animals, and thus the largest sort of predator, is the blue whale.
"There is no well-documented natural predator of blue whales. The only documented attacks on blue whales involve orcas. Because killing a blue whale requires considerable effort and coordination, orcas often target calves. The rate of fatal attacks by orcas is unknown.
Photograph-identification studies of blue whales have estimated that a number of the individuals in the Gulf of California have rake-like scars, indicative of encounters with orcas.[131] Off southeastern Australia, 3.7% of blue whales photographed had rake marks and 42.1% of photographed pygmy blue whales off Western Australia had rake marks.[132] A blue whale mother and calf were first observed being chased at high speeds by orcas off southeastern Australia.[133] The first documented attack occurred in 1977 off southwestern Baja California, Mexico, but the injured whale escaped after five hours.[134] Four more blue whales were documented as being chased by a group of orcas between 1982 and 2003.[135] In September 2003, a group of orcas in the Eastern Tropical Pacific was encountered feeding on a recently killed blue whale calf.[136] In March 2014, a commercial whale watch boat operator recorded an incident involving a group of orcas harassing a blue whale in Monterey Bay. The blue whale defended itself by slapping its tail.[137] A similar incident was recorded by a drone in Monterey Bay in May 2017.[138] The first direct observations of orca attacks occurred off the south coast of Western Australia, two in 2019 and one more in 2021. The first victim was estimated to be an adult between 18–22 meters (59–72 ft).[139]"
https://en.wikipedia.org/wiki/Blue_whale#Predators
"The most common natural predator of sperm whales is the orca (killer whale), but pilot whales and false killer whales sometimes harass them.[213][214] Orcas prey on target groups of females with young, usually making an effort to extract and kill a calf. The females will protect their calves or an injured adult by encircling them."
https://en.wikipedia.org/wiki/Sperm_whale#Ecology
Large male sperm whales can easily kill any shark or any other toothed whale, under the right circumstances such as ambushing one and disabling it with the first strike.
The only limit to the size of creatures which sperm whales eat is that sperm whales have to swallow their prey whole. They don't bit smaller chunks out of their prey, though I guess a group could pull a prey animal apart into smaller pieces.
Even though sperm whales don't bite off pieces of their prey, their bite is very dangerous. They have bitten small wooden boats in half. They can crush bones and internal organs with their jaws, and probably chomp on larger prey a few times to soften it so it is flexible enough to go down their throats and they don't choke on it. So entire sharks, some rather large, have been found in sperm whale stomachs. I think that sperm whales could swallow smaller and medium specimens of bull sharks, megamouth sharks, Greenland sharks, tiger sharks, and great white sharks, if not the larger specimens. And of course they could swallow babies of any shark species.
Sperm whales rarely eat other mammals, perhaps only by mistake, and so they aren't known to hunt seals, dolphins, and other whale species. A sperm whale could kill and eat a lone baby killer whale, unprotected by others in their pod, if it decided to. Under the right cirumstances a large male sperm whale would have a fair chance to kill any of the great whales or a megalodon, but probably wouldn't have a reason to try it.
So all of the largest predators in the sea can potentially prey on the other largest predators in the sea. And some of them do prey on some of the other largest predators in the sea.
I think that it is perfectly possible for two large predator species to prey on each other. The adults of species A may prey on young of species B, as well as other species, while adults of species B prey on young of species A,aswell as other species. And possibly extremly large adults of either species can prey on small or normal sized adults of the other species.
Many animals are ambush predators, which wait in hiding until prey comes near and then attack swiftly before the prey can react. Thus ambush predators can kill and eat animals as large and dangerous as themselves, and sometimes animals much larger than themselves.
Thus I can imagine an ecosystem with two or more large apex predators which are both ambush predators and thus each of them sometimes preys on members of the other species.