Retired A Stars and Their Companions. III. Comparing the Mass-Period Distributions of Planets Around A-Type Stars and Sun-Like Stars