Babe Ruth has the record. Aaron had more games to do it.
Baseball fans love to discuss things such as you have mentioned.
Hank Aaron hit more home runs than Babe Ruth but he had many more at bats to achieve that record.
Babe Ruth never played a night game, but Hank Aaron played in the era of coast to coast travel, and night games followed by Day games.
Babe Ruth played in an era where starters normally finished their games. Aaron played in an era when there were often relief pictures in the late innings, rather than facing a tiring starting pitcher.
Ted Williams lost many years to military service ,and if not for those lost years, he may well have challenged Babe Ruth’s record. He also played in Fenway Park ,which is unfriendly to left-handed home run hitters.
Baseball fans often have these sorts of discussions.