Hello
It depends on how these materials will be consumed. If you need material A on an order and you can consume it on both lengths to fulfill the requirement, then you should go for the first option and use the length as a batch characteristic.
Otherwise, if you will consume the different lengths for different purposes, then you should go for the second option and use different material codes, since it is easier to manage this scenario.
BR
Caetano