If you don't have the DLC, our fully evolved available Ground Types to use are Steelix (Onix without trade), Rhyperior (Rhydon without trade), Excadrill, Mamoswine, Flygon, Rhyperior, Runerigus, Hippowdon, Gastrodon, Claydol, Dugtrio, Quagsire, Whiscash, Seismitoad, Galarian Stunfisk, Golurk, Diggersby, Mudsdale and Sandaconda.
Dugtrio, Quagsire, Galarian Stunfisk and Diggersby are good in the early game up until the 4th gym but they are outclassed by better Ground types (Not that you want to use them in the first 2 gyms).
Seismitoad, Excadrill, Mudsdale, Whiscash, Gastrodon, Sandaconda, Runerigus, Hippowdon, Mamoswine and Claydol are all available early (Wild Area/Galar Mines) up until the 4th gym and they evolve at level 30s (except for Runerigus, which requires a absurd method for its evolution, by Passing under the Pillar in Dusty Bowl with HP decreased by 49 or more).
The remaining ground types Flygon, Golurk and Rhydon are available early in-game, but they evolve very late at around level 40-50 (note that Flygon is the only Pokemon that is worth using at that level, due to Golurk being mediocre and Rhyperior not being available without a trade)
Also, if you are unable to trade, you will most likely be stuck with an Onix/Rhydon, until you will be able to catch a wild Steelix after you have obtained the 8th badge, which is not recommented since you will most likely already have a full team
For our conclusion, the best Ground types to use are Excadrill, Seismitoad, Mamoswine and Flygon due to how important are their secondary typing:
1) Excadrill is immune to both paralysis and poison, can be a great defensive member due to its Steel typing as well as the fact that it does extremely well against 3 of the gym leaders (Opal, Gordie or Melony and Raihan's 2/4 members)
2) Seismitoad is without a doubt the best Water/Ground type in the game due to the wide selection of moves and coverage, can do well against 3 gym leaders ( Kabu, Alister for Shield, Gordie for Sword and Raihan)
3) Mamoswine is one of the only few Ice-types that do pretty well in the main story, not counting competitive (the others are Froslass, Galarian Darmanitan, Weavile and Lapras) and for a bulky physical sweeper, it does pretty good
4) Flygon is probably one of the earliest Dragon-types that will be available to you (Route 6) and it does well against at least 2 gym leaders per game (Gordie for Sword, Alister for Shield and Raihan)
For the DLC part , the available Pokemon (not counting legendaries) are Kantonian Sandslash and Marowak, Krookodile, Nidoking, Nidoqueen, Pallosand, Swampert (DA only) and Garchomp (Shield Only). The best possible DLC Pokemon are clearly Garchomp and Swampert, with secondary/ alternative options being the Nido family and Krookodile