Both cards should work just fine. Get the more recent one.
If you want to check that it will work just buy the latest used off eBay and test..... I use all kinds of these recent HP cards on multiple HP workstations and they all work on each.
Unlike with processors there is no part of BIOS that has a "white list" for approved cards. It is just a matter of whether HP has tested things together extensively, or not.
Note that there may be HP video card firmware updates, which run nicely, and I do flash my HP and non-HP nVidia Quadro cards to the latest HP firmware version if I have a firmware update. I use the latest nVidia drivers (ODE) directly from nVidia's web site. Been doing this all for years now.