Wouldn't work very well as a phone though. The networks a 2012 phone support no longer exist. 2G and 3G are both fully shut down where I live. Even if you specifically got a 4G phone from 2012 it might not support VoLTE, so you'd be unable to make calls.
As a wifi internet device it would work but I'm not sure that's what OP is going for.
it is very difficult to find good (as in "good condition") battery for a 5+ old gadget. even if you find original one - it could be expired and DoA. but more often you get "compatibles" which die in 3-6 months.