It depends on the range you are fighting at. There is no single dominant class, and the map you are on matters as much as your preference.
For long sightlines, the Sniper is the obvious pick — the charge shot and the burst rifle let you hold a lane from a distance where nothing else can answer you. In tight corridors and objective rooms, the Engineer is stronger than the standard Trooper: the shotgun kills in one or two hits at close range, and the fusion cutter lets you repair vehicles and take down enemy hardware.
The heavy classes fill the middle ground with sustained fire and rockets, and the Special Forces and Jedi/Sith options bring mobility and melee power for flanking. Learn two: one for open maps and one for indoor fights, and swap as the match moves.