Not entirely comparable. Most universities don't have tuition fees in Germany, the highest fees are 1000€/year, while it is estimated that the costs of educating a medical student are at least 30,000€ / year. Basically the education is heavily subsidized by the German taxpayer, so if a huge number of doctors later work and pay taxes in Switzerland it is somewhat suboptimal.