How would you compare gas pain while pregnant to contractions?

I’m 33 weeks and have had horrible gas pain today, it’s very sharp but followed directly by gas so I’m sure that’s what it is. How does the pain compare to contractions during labor? It’s pretty bad!