Unless the scammer was not very smart the device is unfortunately lost to your daughter.
Apple can completely reset a device if a person can provide sufficient evidence of valid ownership. Read the requirements and steps for an Activation Lock support request at: https://al-support.apple.com/#/additional-support and links at the bottom right for the type of service requested. Apple says they “may” require "proof of purchase documentation” and that you need “proof of ownership documentation”, but does not detail what currently constitutes proof other than it “must include the product serial number, IMEI or MEID.” User reports on this community and chat with Apple indicate that typically Apple will absolutely require, and ONLY accept, an original receipt issued by Apple or an Apple Authorized Reseller. Presumably this is the only kind Apple can authenticate against fraud since Apple is not involved in third party sales. Apple recommends that you "Keep your receipt after you buy an Apple device" --> https://support.apple.com/HT202711
Note that the device cannot have Lost Mode set on it or be a managed device. If your device has been taken over by you having entered a scammer’s Account then the scammer has likely set Lost Mode and the device is lost to you.
You do NOT have to be the “original” owner. In the case of removing the lock with the correct information, it can be anybody who knows the currently signed in account information. In the case of asking Apple to unlock it, as long as you have the original Apple receipt (which may well not have any personally identifying information on it) you are okay. Apple confirmed this in a conversation.