Effect of linewidth enhancement factor on the generation of optical vortices in a class-A degenerate cavity