Bear in mind that I shaved this morning with a replaceable blade straight razor using a lather I generated from a shaving soap using a brush... so to me foam versus gel is kind of bad versus worse.
There are other options, like non lathering gels such as the ones made by King of Shaves and shave oils like shave secret, that also work well.