May depend on doctor
A good position for a rectal exam is a one where the anus is accessible to the doctor's finger, and the doctor feels he is able to get a really good exam: lying on the side, bent over the examination table, or lying down with feet in stirrup (lithotomy position), etc.
.. The position is not that important. What's important is that the dr. Is able to reach and feel everything he wants to examine.