Some development carts have an incorrect ROM header, but the cart ID is always correct, so prefer the chip ID. If the chip ID is invalid (unlikely), then fall back to the ROM header.