Ebba Andersson proved too good for fellow Swede Frida Karlsson to claim skiathlon victory at the Nordic World Ski Championships in Planica.