You can have better traction and comfort from using the shock or you can have better efficiency and speed from not having it absorb some of your pedaling force, but you can't have both at the same time.
There's a reason the only bikes you'll find with suspension are MTBs, hybrids marketed to newbies who don't know any better (sorry), and high-end e-cargo bikes that have excess power budget to spend on jostling the cargo less.
Also, keep in mind that your arms and legs (if you stand up on the pedals) act as shock absorbers, even if the bike itself is rigid. The tires and even the frame flex a little bit, too, and that's basically considered good enough on paved surfaces up to and including cobblestone streets.