Gpa

I’m currently trying to transfer to UC Berkeley or UCLA and I got a C in one of my classes. I know that if I ask my professor to give me an F I could retake the class for a better grade, and that F will no longer affect my gpa but it will show up on my transcript. Is it better to take the C or to retake it for an A but have an F on my transcript?

You can’t retake the class if you get a C?