Anisotropic compact stars in the Buchdahl model: A comprehensive study