iirc there’s already an app for that in some sense, and a good amount of plausible deniability and backroom politics that can make up for any potential lawsuit. Similar issue to “proving” any kind of discrimination: a smooth corporate operator can CYA well enough to create a fake paper trail to justify any sort of decision making.