Yeah there’s really no excuse for Rayleigh for not even attempting to save Ace, it’s flat out bad writing. Roger told his sworn enemy Garp about his son so there shouldn’t be any reason for his vice captain who he knew for decades not to know.
Oda also ruined WB lowkey for having family being the main theme for his character only for him to let his “brother” Oden rot without any vengeance against Kaido because of “casualties”. Marineford completely goes against that.