Bayes' rule, generalized discord, and nonextensive thermodynamics