Buy a home when you are in a stable job and social situation. It generally takes 6-12 months to know if you like your job and your job likes you. Remember that 50% of doctors change jobs within 2 years of residency graduation. Almost all of them lose money on that home. Renting a home during your first year as an attending allows you to get your financial foundation built before making the largest purchase of your life. It also allows you to get a much better deal on that purchase.
Further Reading:
Recommended Physician Mortgage Lenders
Physician Mortgage Loans
10 Ways to Pay Off a Mortgage Quickly