David and Solomon were both used by the Lord for His purposes. Both had serious weaknesses, which are pointed out, and both had exceptional strengths that God used. We all run with feet of clay and no one can measure who was “smarter” than the other. However, God called David, a man after His own heart, and God gave Solomon much wisdom and wealth - Solomon only prayed for wisdom and because he didn’t ask for riches, God granted him both. So, if you are measuring “smart,” then I’d have to say Solomon - because God gave him great wisdom.
Well the Wise Guy should have known where women problems would go. His dad was the warning display. From whom much is given, much is required.