Different pin-compatible devices can have different package delays for pins used by External Memory Interfaces Intel Agilex® 7. If you follow the requirements stated in the Skew Matching Guidelines section of the External Memory Interface User Guide, you may find it impossible to meet the requirements for multiple devices simultaneously. User Guide covers only when you plan to use one device during the development period and different during the production phase.
If you plan to use both devices in production, you should calculate trace lengths using the average package delay value calculated from pin delays of both target devices.