Flexibility of Educational Systems and Social Inequality in Educational Outcomes