there meaning are the same,and they are both spoken english.in my opinion ,there differences are the time they are used.
but "大夫“ has a long history,it is used from our ancient times to now.
医生 is much more younger,it is not used in our ancient times,just used now.
what is more,大夫 also means a kind of official position in ancient times.