Comparative study of incompressible and isothermal compressible flow solvers for cavitating flow dynamics