The Enchanted forest chronicles. It's about a princess who is not a typical princess, (She bakes cherries jubalee and knows some magic and sword fighting) A friendly king of dragons, a kitchen witch with a dozen cats, and the king of the enchanted forest and all the crazy pressures he has to deal with. These books are amazing, the ladies are strong the gentlemen clever and it's a fun read. Read it to my sons when they were in their middle teens and they loved it.
https://www.amazon.com/Dealing-Dragons-Enchanted-Forest-Chronicles/dp/0544541227
I think I know exactly what the 2nd book you’re talking about is. It’s called Dealing With Dragons by Patricia C. Wrede. I’ve been rereading it since I was a kid too, and it’s really good.
It also dealt w/ fantasy-style loopholes and dry humor that may have influenced your defense.
The enchanted forest series by Patricia wrede. Fun reads, smart girl protagonist, fantasy. This is book 1: https://www.amazon.com/Dealing-Dragons-Enchanted-Forest-Chronicles/dp/0544541227/ref=mp_s_a_1_4?dchild=1&keywords=patricia+wrede&qid=1613419460&sr=8-4
See, this is the problem with today's youth. You have a girl royal brat and they're a princess, you have a boy royal brat and they're a prince, that's what those words mean :P
Also, read this do it now you know you want to.
There's a whole book series on pretty much this same premise. It's young adult, but entertaining none the less.
If you're interested in a story that is slightly similar to the premise in this comic, I suggest The Enchanted Forest Chronicles by Patricia C. Wrede. The first book is Dealing with Dragons.