Both are Fighting-type powerhouses, but they fill different roles:
Pros: High Speed, Spore (100% sleep), strong STAB (Mach Punch, Bullet Seed), useful resistances (Water, Ground, Rock, Dark).
Cons: Frail (low HP/Def), 4x weak to Flying, weak to Fire/Psychic/Fairy, Spore can miss (Grass types immune).
Pros: Massive Attack, better bulk, resists Ghost/Dark/Grass/Ground, Guts ability boosts Attack when statused.
Cons: Slow, 4x weak to Flying, weak to Fire/Psychic/Fairy/Rock, limited special movepool.
Choose Heracross if you need: A durable physical wallbreaker, Ghost/Dark check, Guts-boosted sweeping, Trick Room compatibility.
Test both in your team context—Breloom enables faster playstyles; Heracross anchors slower, bulkier builds.