These are great points. Whatever the total number is (see link below), and let's go with the high of 150 bil, the aid toward Ukraine looks like it is split almost evenly between non lethal aid and lethal aid. So $75 bil toward military needs for the sake of argument. Of that $75 bil, I have seen estimates of at least half that amount being out of date/soon to be out of service military equipement that needed replacing (or was to be replaced). For example, the bradley vehicles, the older Abrahams tanks, etc. That replacement cost then gets funneled back into the US manufacturers. It isn't like Ukraine got our best stuff either. They are getting equipment/vehicles, etc that has generally been contemplated (or has been used), for sale to allies. So, we would lose out on benefits of selling those items.
Your point though, is that there is a mitigation of those donations, and I believe we already have a loan deal in place with the Ukraine.
All the data is contained on the State Department website: