The AI models occasionally altered decisions based on patients’ personal characteristics, affecting priority for care and diagnostic testing