the best device for school is a generic laptop that you can easily find guides and replacement parts for. That way you can fix things
This is the right idea. The qualifier is unnecessary. Repairability is always valuable. The more generic a device is, the more spare parts for it there will be on the market, and the longer those spare parts will be continue to be available on the market.
Buy common refurb/resale tech. Keep it for years, or decades.