IMO arch or similar is going to do more towards teaching Linux than raspian will. Just install that on a cheap laptop/phone and play around with different apps/configs.
For hardware learning pis arent even that great, an stm32, Arduino , or esp32 is a fraction of the cost(so you don't have to worry about burning the io pins out as much) and the toolchain is basically the same(simpler I'd argue even)