Educating your child at home is a very personal and case sensitive decision to make, I would argue that it all depends on the child and should there be reasoning behind why the home would make a better learning environment then yes, it may be better to educate your child at home. Before making a decision, an important factor to consider would have to be whether removing your child from the social development they could gain from school is the right call. Removing your child from school it could affect their social development as they will be lacking constant interaction with both teachers and other pupils.
Teaching in the home environment can also be a very hard task as a clear distinction would have to be made between school and home life, this can be difficult when both these situations are in the same setting. Without this distinction of settings you may find that your child is hard to work with and they may struggle learning. To find out if it would be better to educate your child at home I would start with asking your child what they want to do, ensure you explain carefully and in detail how they would still have to do all the work they would at school and how important a decision making this drastic change would be.
Overall the question of whether it would be better to educate your child at home is a very personal one, should you feel that your child is not doing very well in terms of their education and you feel that this is down to maybe a social issue at school or the school as a learning environment then I would advise you to look into the prospect of educating your child at home.