Like we discussed on Zulip, I think the ability to ask for the minimum version explicitly using jakarta.persistence.database-product-version is the best option. E.g.
jakarta.persistence.database-product-name=postgresql jakarta.persistence.database-product-version=minimum