Optimal Compatibility