This is a subject on which guys are prone to an almost endless amount of confusion and misunderstanding.
To the extent that females have an ideal of an attractive guy,
neither of the images below corresponds to that ideal.
No, it's not true that women like men to have a "dad bod" gut or to be pointedly chubby or overweight. But neither do they like them to be exaggerated bodybuilder types with extreme six packs and all the rest. There are exceptions of course, and there are women (and many more gay men) who fetishize this look -- as indeed there are some who fetishize the chubsters -- but they are in the minority.
The ideal male look for most women is closer to something like this:
But even that can create an exaggerated idea. The truth is the most women prefer guys who are taller, or who don't read short; who are not grossly overweight or excessively thin; they might have a preference with respect to complexion, that is, light skin/dark skin, blonde or dark haired etc; and they will look for at least one physical feature that they find particularly appealing, maybe striking eyes, a winning smile, broad shoulders, it could be almost anything. It really doesn't go far beyond that.
And of course nearly
all of this is secondary to other aspects of a guy's personality and physical demeanor, his confidence, how he walks, his bearing when he stands and sits, how he talks, how he acts. You can have guys who are borderline ugly or repulsive, and if they are naturals or alphas or have serious power or an otherwise commanding presence they will get the hottest pussy on earth.
In short, no, it's of course not true that having a gut or being overweight brings you closer to what women look for in a man. But
neither is it true that you need a "six pack", 8% body fat, or a bodybuilder's physique, or that women find these things particularly attractive. The efforts spent attaining that ideal (to the extent they are spent with the goal of attracting females) could be spent far more productively in other pursuits.