With a mortar halftrack your chances of beating the emplacement spam are like 99% though. Its just the correct counter.
The pit is a real problem only in 1v1, where it can be build very close to the HQ and still have effective range. A pit in such placement may be uncounterable.
A doctrinal unit to counter a basic unit.