I’ve baked them both ways, but prefer foil and a very light coating of vegetable oil after washing thoroughly. It makes the skin tender enough to eat. It sounds like you may not be cooking them long enough. Unless you are overcooking them way too much.How do your cook your sweet potato? I have googled it twice and it been terrible. Hard as a rock. Aluminum foil with and without.
Seems simple but ......