Played at the end of the regular season(17 games) and in the playoffs(out in second round, despite MJ playing really well).
6 rings in 7 seasons.
Also, MJ was indeed a couple months older, but interestingly LeBron has actually upped his game since turning 38. And if LeBron quit because he didn't want to play for a new coach you'd likely lambast him for being a petulant baby.