Generally speaking, the Xbox controller is going to be better for most people as it is natively compatible with Windows through the X-input meaning the vast majority of games are ported to PC with this control scheme in mind. However, the PS5's DualSense is also widely supported, with some games making use of that controller's haptic feedback and adaptive triggers, too.