Avoid such Doctors
Please let me warn you that medicine is a very conservative culture and many physicians have significant inappropriate bias.
Any physician who speaks to any recommendation against anal sex may be just sharing their bias and not truth. Medicine is to have no opinion on when, with whom, or how you are sexual. Anal Sex is common among heterosexual couples as well. It is a very common activity.