I presume these aren't going to be on the same ticket? What is the earliest you could get into LGA?
I would take the earliest flight just to avoid the traffic in the late afternoon to JFK. Renting a car would be my preference, but it depends on whether you know the area or not. Actual journey time would be anywhere from 25min to 2+hrs.