Withdrawing classes

Is it better to have 5 withdrawals on your transcript or to have a low GPA and have to retake a class that is required for your major?