Weapons like machine guns and swarm missiles are good for weakening armor, since they can hit the target several times with each attack.
From BattleTechWiki:
The Machine Gun is the quintessential anti-infantry weapon, issuing a stream of bullets at a high rate of fire to cut down opposing soldiers, while still being effective at damaging Mechas.