You will probably find a system with better performance for your money if your willing to go for a Desktop Computer with Tower to it and display. Additionally if you should ever want to have an upgrade path with the system, you would be able to upgrade it much easier vs having to toss away this system and having to buy yet another system at full price.
Other than that it comes down to preference for the two that you shared if you have to have an all in one type. If you ever want to game, these are not for gaming the CPUs are weak. If your just using it for MS Word and Online Exams with multiple tabs its a match for both of these. Additionally if you ever want to get into Graphic Design or anything like that these 2 will struggle badly.