Flavor dependence of unpolarized TMDs from semi-inclusive pion production