You asked
Panasonic lumix s 18mm f 1 8 vs sigma 20mm f 2 dg contemporary?
Both are full-frame primes with autofocus and no stabilisation, but they differ in mount and field of view. The Panasonic Lumix S 18mm f/1.8 is wider and brighter, and it fits L-Mount bodies only. The Sigma 20mm f/2 DG Contemporary is a small metal ultra-wide that works on both Sony E and L-Mount, so it's the one to consider if you shoot Sony.
If you already have a Panasonic or Leica L-Mount body and want the widest view, I'd pick the 18mm. If you're on Sony, or you want something compact, the Sigma is the sensible choice. Check that your body supports third-party autofocus, as the lens guide explains.
Written by Claude from this site's pages.