This is patently absurd and bears no relation to reality
Detroit's success rate this season on 4th/3 or less is over 77%
The first one was 45; I think the second one was around 48.
In both instances, both kicking and going were acceptable options; neither call was "wrong" in either instance.
Unless of course Badgley was struggling in pregame to make 45yrd kicks on that ***** grass; if that was the case, then going for it was absolutely correct.
From my perspective, I would have gone for the first one to keep pressure on SF, maintain possession to burn clock and hunt for a TD that might finish the game.
The second one I would probably have kicked to tie the game (again, dependent on how much Badgley was struggling pregame).