Replacing hard drive vs purchasing a new Mac
I've had some problems booting my Macbook Pro recently (it's a 13" Mid-2012) and after many discussions with Apple Support, I backed up all my files to and booted from an external drive, reinstalled OS X and upgraded to Mojave before migrating all my data back over, and still had the problem persist. It turns out my 500GB HDD drive is dead and needs to be replaced. Frankly I'm a bit disappointed that this has happened after only 4 and a half years of ownership (I purchased in mid 2014). I also know it is nothing to do with the cable as I already had that issue previously and got it replaced. Essentially I am now weighing up the cost of replacing the hard drive vs buying a replacement Mac.
According to Apple the cost of replacing the HDD (as well as the battery which is also on it's last legs) is about £320, whereas I could probably purchase a similar Macbook for around £900-1000 with a student discount.
I've also read across a few forums that replacing the drive would only really be worth it if I upgraded to an SSD rather than another HDD, which I assume would bump up the repair cost even more. I'm not really willing to dig out a screwdriver and do it myself although that's maybe just laziness on my part.
Just wondering how much longer I could expect my current MBP to last with the drive replaced, and whether it's worth the cost of replacement at all? I'm not really willing to spend hundreds of pounds to fix the current one if it's just going to die again in 6 months.
Cheers
MacBook Pro, macOS Mojave (10.14.1)