That TD was largely a byproduct of luck for the 49ers. Lions turn it over on 4 downs on a dropped pass that should have been caught, even if it wasn't a particularly good ball from Goff.
That Purdy bomb could easily have been, and should have been an interception. Remarkable it's a 7 point game. Niners have been getting outclassed so far.