It's real simple, Barry Bonds, Mark McGwire, and Sammy Sosa shouldn't have comically juiced to the point that they look like inflatable balloon cartoon characters and maybe they wouldn't have had trouble getting into the Hall of Fame.
Pete Rose is a tough call. I think the key point with Rose is that -- according to absolutely every testimony I've read -- he never actually bet against the Reds. I think at some point you have to bury the hatchet and accept that he's taken his punishment. If he had bet against his team and you have evidence, then obvious ban for life, but I think that's a key distinction.
Those were not the only players juicing that much. Ortiz was on the juice big time and he couldn't even play the field. The guy got in because all of those pencil necked geeks who vote just adored him and he said "This is our ****ing city" after a minor terrorist attack at some minor "sporting" event in Boston.
The geeks are mad at Bonds because they feel he didn't treat them like they were one of the guys. It is really that simple. A HOF that is determined by the type of dweebs isn't really a HOF. A true HOF would exist because current members select who is worthy of joining them.
Harold Baines was a really good player. He wasn't even close to Barry Bonds. Baines was not even close to being borderline worthy of the Hall, but got in. It has become a joke. "Big Papi" wasn't even the best hitter in that Boston lineup. He couldn't play the field at all. To get in as a DH should require Edgar Martinez type production.
Barry Bonds was the best player in baseball when he was with the Pirates. When he started juicing he became the greatest player ever. So, if someone wanted to argue that he isn't really the greatest player ever, fine. But, not a HOF'er? Please. I've been watching baseball for a long time. Bonds is still the best player I have seen play and that is considering the non-juiced Bonds. He was an incredible talent in Pittsburgh. His raw talent was comparable to Jaun Soto. Just an incredible ball player.
Sosa I would say is not a HOF'er only because he wasn't great before the juicing and frankly other than that really fun HR chase season with Big Mac, he didn't really accomplish anything truly remarkable. His stats are all inflated and if you trim them down to what they might have been without the juice, he just isn't good enough. Sosa also corked his bat.
I wouldn't eliminate anyone from consideration for juicing. So many players did it and I guarantee a bunch are already in. It was part of the game and MLB kinda pushed for it. If I know a guy was juicing it could be a factor, but when the production is overwhelming and the players impact on the game is substantial, there is no reason to keep them out of the HOF.
As for Rose, he is an obvious HOF'er. The guy was and always will be "Hit King." If he were a borderline HOF'er, then yeah, the gambling is too much of a tarnish to consider him. But, enough already. Everyone knows about gambling now. Gambling is mainstream and not seedy underworld behavior. Obviously, you want to protect the integrity of the game, but Rose is a HOF'er.
As far as him betting on his own team and him not betting against them, it doesn't make it ok. Him betting on his own team would still influence how he manages the games. If he bets on his own team in the regular season he is obviously going to treat it as a must win game, like it is a playoff game. You don't manage regular season games in a 162 game season that way. For instance, you might be winning a game 3-2 and because you bet on your team, you turn to your best reliever when the correct thing to do would be saving that pitcher because of future schedule. There are only certain regular season games that you go into must win mode and treat it like there is no tomorrow. It is a long season. If he is betting on his own team it influences his decisions and how he manages the games. It hurts the integrity of the sport. Not as much as betting against his team, but it obviously influences things. Still, it is not something that should be keeping him out of the HOF.