What's more alarming is that they had a perfectly functional radar altimeter and ought to have known that this is a completely self-contained system; it doesn't depend on the flight computers, the pitot-static system, or any external information such as your current position or a programmed flight plan. If it's telling you that you're only a couple thousand feet above terrain, you really should listen to it and respond accordingly.
Neither of the pilots did.
No idea how it works on a passenger jet, but I would be shocked if it was different.
This is why the crew trusted the captain's altimeter over either of the other two because it precisely lined up with what ATC was telling them. Neither set of parties knew that they were the same incorrect figure derived from the same source. The captain correctly diagnosed that the entire pitot-static system had gone to shit, but still trusted ATC's figure, right up until they started hitting the ocean, even with the GPWS alarm from the (correctly functioning, entirely separate) radar altimeter blaring in the cockpit for over a minute.
Civil primary radar usually isn’t 3D and does indeed depend on transponder, i.e. secondary radar, supplied altitude data.
They should know what their radar supports in any case, and get suspicious when an aircraft asks them for a readback of airplane-supported altitude data.