In my opinion the correct thing to do is to hand in your individual work to the professor with the information as to what you’ve done. But allow the group to have what would have been your portion of the work.
One of the purposes of group projects is to learn how to share work. Someone in the group should have assumed the role of “supervisor” and been responsible for divvying up what needed to be done and documenting that information. Depending on the nature of the group project , being a supervisor may have been a the only role that person should have performed. Each other group member should have documented their personal tasks/results.
Many students (and some teachers) don’t completely understand group projects. They think finding answers is the point. But that’s only half of it. What often happens in these groups is that everyone goes off saying, “Let’s everyone just start working on something, we’ll get together and share, then go on from there.” That tends to result in what has happened in your group unless you have exceptionally motivated members.
If you are fortunate, the professor will give you special credit for your work. Make absolutely sure you include documentation on the nature of how the group divided up the work. And without placing all the blame on the other individuals in the group, write a reflection on the success of’ the group’s style of working. Include what you believe you personally could have done better to facilitate the project. If you have any kind of decent professor, he/she will give you credit for what was possibly the true purpose of the group.