From my side i can differientiate both gamepad, am not sure why yours not working.
You should also get these 2 popup when you start the project, as you can see it auto assign the user ID:
Try to print string this return value: expect a value of 2 (for the 2 gamepad)
Am using DS4Windows with 2 ps4 controllers if that make any difference for other people.