IIRC the BA dupe booking robotic will not cancel bookings on the same flight if they are in different cabins.
I cannot comment on Qantas' systems.
There is also a system keyword that an agent can add to a booking to protect against the dupe robotic. I'm not sure many (if any) call centre agents will know of it though.