The API on PS5 is completely different and seemingly far superior to DX. PS5 exclusives will take full advantage of all the fast paths and hardware functionality that isnt exposed on PC. Multiplatform titles are unlikely to go this route as it complicates development for the other versions of their game. In those scenarios, optimizations are more likely to carry over. In the case of Sony ports, minimal budgeting seems to be allocated so efforts are probably focused on getting the game to function properly and whatever is left they dedicate to Nvidia for marketshare reasons.
Developers have been asking for better tools on PC for years. Unfortunately, neither AMD, Nvidia, Intel or Microsoft seem to care. Understandably so since it would be more likely to hurt their profits rather than help.