I also heard that the PlayStation 5 graphics API's are more optimized to the hardware than DirectX is. Not sure if that's true though.
Playstation has LibGNM and LibGNMX, Switch has OpenGL and Vulkan but you really want NVN for every drop of performance