Do you still expect that to work now that the decade of low interest rates is over? Shouldn't people buy individual bonds instead?
All of those affect what you should do and what is optimal.
https://www.bogleheads.org/wiki/Individual_bonds_vs_a_bond_f...
Reasons for a fund may include ease of management, variations in contributions and times, uncertainty of when the need, and ease of rebalancing.
Individual bonds may be more appropriate for a defined liability at a specific time, for a bond ladder, or as a tax minimization strategy.